Now it looks like this:
- Account Dashboard
- Account Information
- Address Book
- My Downloadable Products
- My Orders
- Newsletter Subscription
- Billing Agreements
- My Product Reviews
- My Wish List
I want to change the order to something like this:
- Account Dashboard
- My Orders
- My Downloadable Products
- My Wish List
- My Product Reviews
- Newsletter Subscription
- Account Information
- Address Book
- Billing Agreements
I would prefer to edit the existing module and not to make new one
There is a similar question on stackexchange but it is for Magento 1
How to change magento My Account links order
Thanks!
Best Answer
We can rearrange these links by using "move". Reference to Magento document for more detail. Assume that you are working on customer_account.xml on your theme. In my case:
File path: app/design/frontend/Lhc/diamond/Magento_Customer/layout/customer_account.xml
Code:
The same with remain links you would like to sort. "customer-account-navigation-orders-link" is the block name in layout, using "before" and "after" element.