How to remove "Orders and Returns" from the footer?

I upgraded a new installation of Magento 1.5.0.1 to Magento 1.6.0.0, and now I have a link in the "Orders and Returns" footer that I cannot figure out (yet) how to remove that.

I cannot remove it from the main files, I tried the XML method, but it does not seem to work (maybe my mistake).

At the moment, I can’t even localize where the link is created, because simple tests (for example, random words where the output should be displayed) never work.

Has anyone received any suggestion or solution?

+6
source share
3 answers

Here is the solution.

Since I needed to support this theme, I duplicated the sales.xml layout from the / design / frontend / base / default / layout / application to the theme layout folder (app / design / frontend / default / <name> / layout /) and commented <action> element from the following snippet:

 <default> <reference name="footer_links"> <block type="sales/guest_links" name="return_link"/> <action method="addLinkBlock"><blockName>return_link</blockName></action> </reference> </default> 

Enjoy it!

+7
source

You may try:

 <layout> <default> <reference name="return_link"> <!-- Set the template file to an empty string to prevent output --> <action method="setTemplate"> <template></template> </action> </reference> </default> </layout> 

Or in 1.7 +:

 <layout> <default> <reference name="footer_links"> <action method="removeLinkBlock"> <blockName>return_link</blockName> </action> </reference> </default> </layout> 

Or, as mentioned in Rumble:

 <layout> <default> <remove name="return_link" /> </default> </layout> 

One caveat about using the remove element is that it will prevent this block name from being used anywhere in the layout, as it will be converted to the global xpath selector.

+14
source

There really is an easy way to remove this link. Add local.xml to your theme

 <default> <remove name="return_link"/> </default> 

There is a good introduction to using local.xml here .

0
source

Source: https://habr.com/ru/post/895886/


All Articles