- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to manage customer account dashboard links
February 26, 2016
Magento. How to manage customer account dashboard links
This tutorial will teach you how to remove links from customer account navigation menu in Magento:
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.
-
Access the installation root of your site.
- Create xml file of the module ‘Prasan_CustomerNavigationLinks.xml‘ in app/etc/modules/ with the following code in it:
true local - 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 - 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; } }
- 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 - 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 –
.
-
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