- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've searched and searched but can't figure it out. How do I remove extraneous links from the customer dashboard? (i.e. Newsletter, billing agreements, and downloadable products)
My (purchased) custom theme did not have the Magento_Customer folder, so I added it and it's subfolders/files according to this site, cleared all cache and nothing ... No changes at all.
Did I miss something? Please help.
Edited to add: I've now created a Magento_Newsletter folder and it's subfolders/files in hopes it needed to be at that level. Sadly it hasn't worked this way either?! What am I doing wrong?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @AmagArtwork
In your default.xml add the following code use their name that are defined in layout xml
Address Book = customer-account-navigation-address-link
My Wishlist =customer-account-navigation-wish-list-link
Billing Agreements =customer-account-navigation-billing-agreements-link
<?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-address-link" remove="true"/> </body> </page>
Remove var/cache folder and disabled the cache from admin panel. and set the developer mode
Problem solved? Click Accept as Solution!"
Qaisar Satti
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove links from customer account dashboard
We were in the same trouble, but we found extension that helped us to remove customer links http://magery-themes.com/magento-2-account-links-manager.html
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi @AmagArtwork
In your default.xml add the following code use their name that are defined in layout xml
Address Book = customer-account-navigation-address-link
My Wishlist =customer-account-navigation-wish-list-link
Billing Agreements =customer-account-navigation-billing-agreements-link
<?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-address-link" remove="true"/> </body> </page>
Remove var/cache folder and disabled the cache from admin panel. and set the developer mode
Problem solved? Click Accept as Solution!"
Qaisar Satti
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove links from customer account dashboard
They are multiple ways of accomplishing this (1) using a free third-party modules i.e https://www.magepal.com/customer-dashboard-links-manager-for-magento-2.html or (2) using layout.xml
Create a new module
- VendorName/ModuleName/view/frontend/layout/customer_account.xml
then in you customer_account.xml add
<?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-wish-list-link" remove="true"/> </body> </page>
List of all possible "name"
Store credit - customer-account-navigation-customer-balance-link
Downloadable product link - customer-account-navigation-downloadable-products-link
Subscription link - customer-account-navigation-newsletter-subscriptions-link
Billing agreement link - customer-account-navigation-billing-agreements-link
Product review link - customer-account-navigation-product-reviews-link
My credit card link - customer-account-navigation-my-credit-cards-link
Account link - customer-account-navigation-account-link
Account edit link - customer-account-navigation-account-edit-link
Address link - customer-account-navigation-address-link
Orders link - customer-account-navigation-orders-link
Wish list link - customer-account-navigation-wish-list-link
Gift card link - customer-account-navigation-gift-card-link
Order by SKU - customer-account-navigation-checkout-sku-link
Gift registry - customer-account-navigation-giftregistry-link
Reward points - customer-account-navigation-reward-link
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove links from customer account dashboard
Where do we find the list of all names possible?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove links from customer account dashboard
Remove unnecessary customer account links in Magento 2 to manage the “My Account” section.
Get the programmatic solution at https://meetanshi.com/blog/remove-unnecessary-customer-account-links-in-magento-2/
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Remove links from customer account dashboard
Hello @AmagArtwork
In case looking for small and easy extension, check out
https://magecomp.com/magento-2-customer-account-links-manager.html
- Select the account link selection type either including or excluding.
- The admin can select the multiple links from multi select box and can include or exclude depending on your business needs.
Using the extension when you want to enable/disable the link, you can. Otherwise you will need to look into the code everytime to enable/disable everytime.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer