![](/img/trans.png)
[英]In magento how can I show different-different list.phtml and view.phtml for different -different categories?
[英]How to list Magento sub categories and their products on category/view.phtml
我是magento的新手,已经实现了我的设计,但是我正努力解决类别/产品列表问题。
我的类别是这样的
Parent
Child
Grandchild 1
Product 1
Product 2
Grandchild 2
Product 1
Product 2
我有一个顶级导航,并在下拉列表中列出了所有页面上可用的子项,但是一旦导航到该子项,我希望它列出每个子项类别和相关产品。
该商店将保持很小的规模,因此我们在谈论每个孙子类别5-10种产品。
该网站位于http://gasworksparkkiteshop.com,任何建议都将大有帮助。 我还使用自定义Modern主题的副本。
查看主题的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>
...
您的网站没有我可以看到的左侧区域,因此上面的代码没有任何作用。 尝试将引用更改为使用中的位置,或在2columns-right.phtml
插入要在其中显示导航块的错误的左列。
<?php echo $this->getChildHtml('left') ?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.