如何从页脚中删除“订单和退货"? [英] How to remove 'Orders and Returns' from the footer?

查看:27
本文介绍了如何从页脚中删除“订单和退货"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Magento 1.5.0.1的全新安装更新为Magento 1.6.0.0,现在我在页脚中有一个链接订单和退货",但我还无法确定(如何)删除那个.

I've updated a fresh Magento 1.5.0.1 installation to Magento 1.6.0.0, and now I've got a link in the footer, "Orders and Returns", that I can't figure (yet) how to remove that.

我无法将其从核心文件中删除,我尝试了XML方法,但似乎无法正常工作(可能是我的错).

I can't remove it from the core files, I've tried the XML method but doesn't seems to work (probably my fault).

此刻,我什至无法定位链接的生成位置,因为简单的测试(如在输出应出现的地方放置随机单词)永远无法工作.

At the moment I can't even localize where the link is generated, as simple tests (like putting random words where the output should appear) never works.

有人有任何建议或解决方案吗?

Anyone got any suggestion or a solution about?

推荐答案

此处为解决方案.

由于我需要保持主题相关,因此将布局sales.xml从app/design/frontend/base/default/layout/复制到了主题布局文件夹(app/design/frontend/default/< name> /layout/),并从以下代码段中注释掉<action>元素:

Since I needed to keep it theme related, I duplicated the layout sales.xml from app/design/frontend/base/default/layout/ to my theme layout folder (app/design/frontend/default/<name>/layout/) and commented out the <action> element from 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>

享受!

这篇关于如何从页脚中删除“订单和退货"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆