Magento: Add/ Remove account dashboard navigation links

January 12, 2012 | In: Magento, php, web development, XML

We can add or remove anythings in magento core files but it is not a perfect solution. To make a perfect solution, we are creating a small module. By this module you will able to add / remove navigation links from customer account dashboard.

Firstly, we create a module XML file to access from local folder:

Step1: Create a file “Nos_Navigation.xml” in app\etc\modules\ folder

Step2: Put below code in this xml file

	<?xml version="1.0" encoding="UTF-8"?>

Step3: Create a new file “app\code\local\Nos\Navigation\Block\Account\Navigation.php”
and put below code in this file:

	class Nos_Navigation_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation {
  	    // This function is use to remove a link from navigations list.
	    public function removeLinkByName($name) {

Step4: Create a file: “app\code\local\Nos\Navigation\etc\config.xml”

<?xml version="1.0" encoding="UTF-8"?>

Step5: Now you can create your own local.xml file in your theme layout folder. If you have not idea that how you can create a local.xml file in your own theme folder then don’t worry 🙂

Step6: create a local.xml file in your “add/design/frontend/YOUR_THEME/default/layout/local.xml”

Step7: Put below code in your theme local.xml file:

    <reference name="customer_account_navigation">
        <action method="removeLinkByName"><name>tags</name></action>

You can also add your own line to remove another links like: billing_agreements, wishlist, etc.

That’s it.

1 Response to Magento: Add/ Remove account dashboard navigation links


Magento Developer

July 26th, 2013 at 10:05 am

In order to remove any links like Top Links, Footer Links, My Account Links etc via admin interface, I would recommend the following free extension which just works out of the box:
Happy E-Commerce!

Comment Form

Leave a Reply

Your email address will not be published. Required fields are marked *



Latest comments

    Fatal error: Uncaught Error: Call to undefined function split() in /home4/nos/public_html/ Stack trace: #0 /home4/nos/public_html/ mdv_recent_comments() #1 /home4/nos/public_html/ include('/home4/nos/publ...') #2 /home4/nos/public_html/ include('/home4/nos/publ...') #3 /home4/nos/public_html/ require_once('/home4/nos/publ...') #4 /home4/nos/public_html/ require('/home4/nos/publ...') #5 {main} thrown in /home4/nos/public_html/ on line 72