0

My question might be possibly duplicate of Magento 2 - How to rearrange Customer "My Account" links but I really have no idea why my code is not working as expected

My current links order is:

  • My Account
  • My Orders
  • My Downloadable Products
  • My Wish List
  • ...
  • ...
  • Newsletter Subscriptions
  • My Current Designs
  • Preview Order Artwork
  • My Saved Quotes
  • My Credit Cards (eWAY)

I want it like :

  • My Account
  • My Orders
  • My Current Designs
  • Preview Order Artwork
  • My Saved Quotes
  • My Wish List
  • ...
  • ...
  • Newsletter Subscriptions
  • My Credit Cards (eWAY)

This is my code

app/design/frontend/Vendor/module/Magento_Customer/layout/customer_account.xml

<?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">
   <body>
     <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true" />
     <move element="customer-account-navigation-my-designs" destination="customer_account_navigation" after="customer-account-navigation-orders-link" />
     <move element="customer-account-navigation-mycard" destination="customer_account_navigation" after="customer-account-navigation-my-designs" />
     <move element="customer-account-navigation-my-saved-cards" destination="customer_account_navigation" after="customer-account-navigation-mycard" />
   </body>
</page>      

but my output is this.
enter image description here

2
  • Welcome Nikky to join Magento SE. Did you try with sortOrder? For example: vendor/magento/module-wishlist/view/frontend/layout/customer_account.xml Jan 26, 2020 at 16:11
  • Thanks for welcoming me here. Yeah I tried sortOrder too but that Dosen't seems to be working! Jan 27, 2020 at 3:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.