Categories

Featured templates

Magento. How to manage customer account dashboard links

Harry Baker February 26, 2016
Rating: 5.0/5. From 2 votes.
Please wait...
Magento. How to manage customer account dashboard links

This tutorial will teach you how to remove links from customer account navigation menu in Magento:

Magento. How to manage customer account dashboard links

The best approach is to make a small module and remove all these links from one xml file. To do so follow the steps below.

You can use any code editor available to create/edit the files mentioned (for example Notepad ++ ), we’re using hosting cpanel.

  1. Access the installation root of your site.

  2. Create xml file of the modulePrasan_CustomerNavigationLinks.xml‘ in app/etc/modules/ with the following code in it:
    
    
    
    
    true
    local
    
    
    
  3. Create the module config.xml file in app/code/local/Prasan/CustomerNavigationLinks/etc/ with the following code in it:
    
    
    
    
    0.0.1
    
    
    
    
    
    
    prasan_customernavigationlinks.xml
    
    
    
    
    
    
    
    
    Prasan_CustomerNavigationLinks_Block_Account_Navigation
    
    
    
    
    
  4. Access app/code/local/Prasan/CustomerNavigationLinks/ directory and create Block/Account/ path there. Now create there module block file ‘Navigation.php‘with the following code in it:
    _links[$name]);
    return $this;
    }
    }
  5. Now create prasan_customernavigationlinks.xml file in app/design/frontend/base/default/layout/ with the following content in it:
    
    
    
    
    
    
    account 
    
    
    account_edit 
    
    
    address_book 
    
    
    orders 
    
    
    billing_agreements 
    
    
    recurring_profiles 
    
    
    reviews 
    
    
    tags 
    
    
    wishlist 
    
    
    OAuth Customer Tokens 
    
    
    newsletter 
    downloadable_products
  6. After you’re done, all the navigation links from customer account will be removed. To enable any link required, simply open prasan_customernavigationlinks.xml file and comment it out like this – .
  7. Now save the changes, clear magento cache and check the site.

That’s it! Now you know how to remove links from customer account navigation menu.

Feel free to check the detailed video tutorial below:

Magento. How to manage customer account dashboard links
Magento Premium Themes
This entry was posted in Magento Tutorials and tagged account, customer, dashboard, links, Magento. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

" class="hidden">2144三国杀