Skip to main content
added 19 characters in body
Source Link
Fabian Blechschmidt
  • 35.4k
  • 8
  • 75
  • 182

I would first like you to tell that there are different ways to solve your problems.

  1. It is the easiest way which is find the code in the layout.xmllayout.xml file inside base which you want to remove for eg:if if i want to remove the "My tags" then just comment the portion. <customer_account> tagstag/customer/My Tags </customer_account> But

     <customer_account>
         <!-- Mage_Tag -->
         <reference name="customer_account_navigation">
             <action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
         </reference>
     </customer_account>
    

    But you know that we should not modify the base file,so another next simple method that could be performed is 2.Unsetting

  2. Unsetting the link in your template file.For that copy your navigation.phtmlnavigation.phtml file to your theme (Note: the folder structure should be same) from the base\default\template\customer\account\navigation.phtmlbase\default\template\customer\account\navigation.phtml. which is shown in above answer.

  3. Another tedious task is to rewrite your core module and creating a method "RemoveLinkByName".which is shown here.link hereAnother tedious task is to rewrite your core module and creating a method "RemoveLinkByName".

I would first like you to tell that there are different ways to solve your problems.

  1. It is the easiest way which is find the code in the layout.xml file inside base which you want to remove for eg:if i want to remove the "My tags" then just comment the portion. <customer_account> tagstag/customer/My Tags </customer_account> But you know that we should not modify the base file,so another next simple method that could be performed is 2.Unsetting the link in your template file.For that copy your navigation.phtml file to your theme (Note: the folder structure should be same) from the base\default\template\customer\account\navigation.phtml. which is shown in above answer.

  2. Another tedious task is to rewrite your core module and creating a method "RemoveLinkByName".which is shown here.link here

I would first like you to tell that there are different ways to solve your problems.

  1. It is the easiest way which is find the code in the layout.xml file inside base which you want to remove for eg: if i want to remove the "My tags" then just comment the portion.

     <customer_account>
         <!-- Mage_Tag -->
         <reference name="customer_account_navigation">
             <action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
         </reference>
     </customer_account>
    

    But you know that we should not modify the base file,so another next simple method that could be performed is

  2. Unsetting the link in your template file.For that copy your navigation.phtml file to your theme (Note: the folder structure should be same) from the base\default\template\customer\account\navigation.phtml. which is shown in above answer.

  3. Another tedious task is to rewrite your core module and creating a method "RemoveLinkByName".

Source Link
Navin Bista
  • 1.1k
  • 5
  • 14
  • 30

I would first like you to tell that there are different ways to solve your problems.

  1. It is the easiest way which is find the code in the layout.xml file inside base which you want to remove for eg:if i want to remove the "My tags" then just comment the portion. <customer_account> tagstag/customer/My Tags </customer_account> But you know that we should not modify the base file,so another next simple method that could be performed is 2.Unsetting the link in your template file.For that copy your navigation.phtml file to your theme (Note: the folder structure should be same) from the base\default\template\customer\account\navigation.phtml. which is shown in above answer.

  2. Another tedious task is to rewrite your core module and creating a method "RemoveLinkByName".which is shown here.link here