I want to call block on the home page of the store. how can I add recent order block on store home page from admin? Thanks

I have tried this <p>{{block class="Magento\Sales\Block\Order\Recent" template="Magento_Sales::order/recent.phtml"}}</p> Thanks

  • The block you are using would only show recent order of currently logged in customer. Is that what you want? – Shoaib Munir Aug 5 '19 at 12:56
  • Yes. Because without login we can not access store home page. – Hansraj Systematix Aug 6 '19 at 5:15
  • Then your code should work. what issue you are facing? – Shoaib Munir Aug 6 '19 at 5:26
  • Blank page showing. Any other way is there? – Hansraj Systematix Aug 6 '19 at 5:34
  • This is not the error, please check exception.log for actual error – Shoaib Munir Aug 6 '19 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.