Magento - How to add/remove links on my account navigation?

后端 未结 11 1245
逝去的感伤
逝去的感伤 2020-12-01 03:45

I am trying to remove links on my account navigation. I looked at the customer/account/navigation.phtml template. The template grabs links by $this->getLinks(). How do I edi

11条回答
  •  悲哀的现实
    2020-12-01 04:22

    If you want to selectively remove links without having to copy/edit entire xml files, a nice solution can be found in this post in the magento forums

    In this solution, you override the Mage_Customer_Block_Account_Navigation block with a local version, that adds a removeLinkByName method, which you then use in your layout.xml files, like so:

    
        
    
        
            
                    
                    
                       recurring_profiles
                    
                    
                       billing_agreements
                    
            
        
    
    

提交回复
热议问题