[英]Magento incorrect product count when limit=all on product list page
[英]Magento - left.ptml not showing on all product list pages
left.phtml在magento頁面上顯示左側導航的文件僅顯示在一個列表視圖頁面上,而其他任何人都沒有解決方案來使該文件顯示在所有列表視圖中
如果您要分配left.phtml,
然后,根據magento structure left.phtml
僅在Non-Anchor category
的left side of category
顯示Non-Anchor category
left side of category
。
並且僅針對Anchor category
顯示layer navigation
對於錨left.phtml不顯示。
For non-Anchor categories
請參閱catalog.xml代碼
<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"/>
</reference>
也用於
Anchor categories
參見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>
希望,你會understand
。
如果您嘗試將導航添加到CMS頁面,請嘗試使用Google主題(如何將導航添加到CMS頁面)。 有很多示例,我不想重復它們。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.