2015-12-17 51 views
0

我想從左側屬性導航中移除類別並將其添加到產品列表視圖上方。移動Magento類別選擇上方產品列表和添加縮略圖

我一直在使用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()等縮略圖。

任何想法?

回答

0

現在從左邊刪除後,您應該添加到內容區域,調整它的位置與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>