2

所以我正在更改 catalog.xml 中的代码

<catalog_category_layered translate="label">
<label>Catalog Category (Anchor)</label>
<reference name="left">
    <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
</reference>
</catalog_category_default>



<catalog_category_default translate="label">
<label>Catalog Category (Non-Anchor)</label>
<reference name="left">
<!--  <block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>-->
 <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
</reference>
</catalog_category_default>

我想在我们的模板 home.phtml 中添加过滤层,但它不起作用我也在 home.phtml 管理 cms 设计中添加块,但它不起作用所以有人告诉我该怎么办?

4

1 回答 1

1

您是否检查过左侧是否有名称为“货币”的块?因为这段代码告诉 Magento 在名为 currency 的块之后添加它。

也许尝试以下将其放在首位。

<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/>
于 2012-12-26T14:22:58.247 回答