How to remove magento navigation links from My Account dashboard

by the following steps
Remove magento navigation links from My Account dashboard

Below are the steps, Magento Developers implements in the customers account dashboard to remove manage navigation links.The links in the customers account dashboard navigation are added via different layout XML files.
NameSpace : Egits

Step 1: Create a php file in app/code/local/Egits/Customer/Block/Account/Navigation.php:

{
 public function removeLinkByName($name)
    {
        unset($this->_links[$name]);
    }   
} 

Step 2: Rewrite magento account_navigation with Egits_Customer_Block_Account_Navigation a configuration XML file in app\code\local\Egits\Customer\etc\config.xml:


    
        
            
                
		 Egits_Customer_Block_Account_Navigation
                
            
        
    


Step 3: Finally you can remove My Account links individually from your local.xml file as :

billing_agreements
             recurring_profiles
             reviews

This is a list of all names for navigation links in account dashboard (in default order of their appearance):

•	account
•	account_edit
•	address_book
•	orders
•	billing_agreements
•	recurring_profiles
•	reviews
•	tags
•	wishlist
•	OAuth Customer Tokens
•	newsletter
•	downloadable_products

Leave a Reply

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