I want to show my all orders list in my dashboard .with this wishlist page. I think its in luma by default but I am using a theme so where in xml I have to again activate this ? . enter image description here


<?xml version="1.0"?>
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="customer_account"/>
        <referenceBlock name="page.main.title">
            <action method="setPageTitle">
                <argument translate="true" name="title" xsi:type="string">My Dashboard</argument>
        <referenceContainer name="content">
            <block class="Magento\Customer\Block\Account\Dashboard\Info" name="customer_account_dashboard_info" as="info" template="account/dashboard/info.phtml" cacheable="false"/>
            <block class="Magento\Customer\Block\Account\Dashboard\Address" name="customer_account_dashboard_address" as="address" template="account/dashboard/address.phtml" cacheable="false"/>
            <block class="Magento\Framework\View\Element\Template" name="customer_account_dashboard_top" as="top"/>


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
       <!-- Orders link -->
       <referenceBlock name="customer-account-navigation-orders-link" remove="false"/>

You can use this in a custom module. I believe in can be used in your theme folder as well.

To answer your question. The xml is customer_account.xml.


You desire to achieve a custom behavior.

The controller that renders the information you desire is Magento\Sales\Controller\Order\History

You can take a look at how your current behavior is implemented for Address and Account Information and emulate that for Order History

Also the layout file for the view you want to edit is.

  • In Order history left side bar I can get all oders , But I want to show under 'MY Dashboard' So for this where I need to write this ? – Learner Dec 4 '17 at 9:04
  • Check updated answer. – vitoriodachef Dec 4 '17 at 9:11
  • @Valpea can you have look at my customer_account_index.xml ? where I can add this ? – Learner Dec 4 '17 at 9:22

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.