移动Magento类别选择到上面的产品列表和添加缩略图


Move Magento Category Select to Above Product List and Add Thumbnails

我想从左侧属性导航中删除Category,并将其添加到产品列表视图上方。

我已经使用local.xml从catalog.leftnav中取消了设置,如下所示:

<layout>
<catalog_category_layered>
    <reference name="catalog.leftnav">
        <action method="unsetChild"><alias>category_filter</alias></action>
    </reference>
</catalog_category_layered>
</layout>

但我很困惑如何让它回到产品之上。一旦我这样做了…我不太确定生成类别列表的代码在哪里运行。换句话说,在那里我可以编辑它,为我的缩略图包括$cat->getImageUrl()等。

有什么想法吗?

现在从左边删除后,您应该添加到内容区域中,用before/after调整其位置。

<catalog_category_layered>
  <reference name="content">
     <block type="catalog/layer_view" name="catalog.leftnav" before="category.products" template="catalog/layer/view.phtml">
  </reference>
</catalog_category_layered>