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>
vendor/magento/module-wishlist/view/frontend/layout/customer_account.xml