我正在使用 Magento 1.9.1.0 并且在类别和产品视图页面上有可配置的样本。
我正在尝试创建一个列出所有产品的自定义“商店”页面(商店只有 +/-20),并且在产品下方显示可配置的样本。
我可以通过多种方式创建列出所有产品的 Shop 页面。通过 CMS、local.xml 或使用控制器等...没有问题。
这是 local.xml 示例。*我有适当的路线设置,默认类别设置为“是锚”。
<mystore_site_index_shop>
<reference name="content">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<block type="core/text_list" name="product_list.name.after" as="name.after" />
<block type="core/text_list" name="product_list.after" as="after" />
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
</block>
</reference>
</mystore_site_index_shop>
我还在 configureswatches.xml 中添加了对页面的页面引用
<mystore_site_index_shop>
<update handle="product_list"/>
</mystore_site_index_shop>
它将适当的 .js 文件加载到页面......但是没有显示样本。
有人对我如何做到这一点有任何建议吗?我必须在这里遗漏一些明显的东西..
谢谢!