繁体   English   中英

在Magento 1.9.2.2 RWD中无法使用local.xml

[英]local.xml not working in Magento 1.9.2.2 RWD

我将Magento 1.9.2.2与RWD软件包一起使用。
似乎local.xml无法正常工作。
如果我将原始的catalog.xml复制到带有local.xml的目录中,那么对catalog.xml的更改就会生效。

这是local.xml的代码:

<?xml version="1.0"?>
<layout version="0.1.0">

<!--
Default layout, loads most of the pages
-->

<default>
    <!-- remove the language and store switcher and footer links blocks, we won't use them -->
    <remove name="store_language" />
    <remove name="store_switcher"/>
    <remove name="footer_links" />
</default>

<default>
<reference name="right">
<remove name="catalog.compare.sidebar" />
<remove name="left.reports.product.viewed" />
<remove name="catalog.product.related" />
</reference>
</default>

也许我将local.xml放置在错误的位置?

希望有人知道,
埃尔斯

这是我放置local.xml的地方

我从magento.stackexchange.com的SeStro获得了以下答案:

尝试将“删除”节点放到“引用”节点(“ store_language”放到“ header”,“ store_switcher”和“ footer_links”放到“ footer”)。 它很有效,因为1.9.2.2的local.xml文件没有任何问题。 如果毕竟不能正常工作,则可以在自定义模板中使用“ catalog.xml”文件进行任何操作;] – SeStro 11月30日20:57

完美的作品。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM