cancel
Showing results for 
Search instead for 
Did you mean: 

Remove links from customer account dashboard

SOLVED

Remove links from customer account dashboard

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.Cat Frustrated

 

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Remove links from customer account dashboard

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

Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti

View solution in original post

6 REPLIES 6

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

Re: Remove links from customer account dashboard

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

Find helpful ? Consider Giving Kudos to this post.
Problem solved? Click Accept as Solution!"
Qaisar Satti

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

 

Developer @ magepal.com

Re: Remove links from customer account dashboard

Where do we find the list of all names possible?

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"

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.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now