0

I am customizing my dashboard panel in customer account. There are two things customer info and customer address.

However when I add the order we can see orders here, but in the dashboard in the magento_customer > frontend > dashboard

there are only two .phtmlfiles which we can be customized info and address.

  1. How I can customize the orders. Problem is orders are getting render at top but I want to render them in the last.

  2. How I can add the wish list in the my dashboard?

  • I think you are using ultimo theme and wishlist already coming in dashboard panel on left on account page – Manoj Deswal Oct 4 '17 at 9:29
  • yeah but i want a small wishlist in the my dashboard also. – tech_geek Oct 4 '17 at 9:32
0

Layout file that is responsible for managing the blocks on Customer Account dashboard is customer_account_index.xml.

In Magento_Customer module, You can found this file here:

vendor/magento/module-customer/view/frontend/layout/customer_account_index.xml

In Magento_Sales module, You can found this file here:

vendor/magento/module-sales/view/frontend/layout/customer_account_index.xml

<body>
    <referenceContainer name="content">
        <block class="Magento\Sales\Block\Order\Recent" name="customer_account_dashboard_top" after="customer_account_dashboard_hello" template="order/recent.phtml"/>
    </referenceContainer>
</body>

Above is the block for responsible Recent order list. To change its position, you can change the block name to the new one where you want to show this like after info or after address.

Similar to sales module, you can create new block on Wishlist Module and add that block Content Container in customer_account_index.xml.

PS: You need to do all this modification in your current theme package.

| improve this answer | |
  • for the orders i have found the solution exactly what you are asking but for the wishlist i am having a hard time to finding a wishlist. – tech_geek Oct 4 '17 at 9:30
  • Do you want to show the whole wishlist there as on wish list page ? – Pankaj Pareek Oct 4 '17 at 9:32
  • no just images of wishlist products. Small images like. I think i have to made a custom wishlist template? – tech_geek Oct 4 '17 at 9:35
  • Yes you need to add custom template with the same wishlist block and add that block on customer account index page. – Pankaj Pareek Oct 4 '17 at 9:48
  • i need to make a new block also ? – tech_geek Oct 4 '17 at 9:53

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.