Recent Blogs

  • Why A Travel Company Needs An Attractive Website?

    A website considered a great source of a marketing platform for a travel company. It is a place where you can share your availability and regularity all the time without unusual hindrances. A website should be responsive, user-friendly, and easy to operate. A travel company promotes itself through the best website to put trustworthy content. It may promote visitors and it would be a great platform to place tour packages.

    Why travel agencies needs a attractive website

    12-06-2020

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 *