如何在主页上显示所有产品详细信息(价格,描述,图像..),
在Cms中使用以下编码 - >主页 - >内容,
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}
它没有在前端显示任何产品?
检查cms主页设计,
<\!--<reference name="content">
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
<block type="reports/product_compared" name="home.reports.product.compared" template="reports/home_product_compared.phtml" after="product_viewed">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
<reference name="right">
<action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
<action method="unsetChild"><alias>right.reports.product.compared</alias></action>
</reference>-->
它的编码在html标签中注释并删除它将显示产品的html标签,但它显示产品图像如下,产品显示一旦用户查看它将显示的产品,为什么它显示最近用户查看的产品,我想显示所有产品 .
2 回答
将此代码与根类别ID一起使用,因为没有类别ID,它不能是列表产品 .
并将类别'Is Anchor'设为是
如果您希望在Magento 1.9.2.2(也是1.9.2.3和1.9.2.4)及更高版本上使用它,则需要将块目录/ product_list添加到System> Permissions> Blocks并将Allowed设置为Yes .