magento - 无法在 Magento 1.9 主页上显示产品

标签 magento product magento-1.9

我试图在 Magento 1.9 主页上显示所有产品的列表,但我看到的只是“没有与选择匹配的产品”。我已将以下 block 添加到 CMS>主页>内容中:

{{block type="catalog/product_list" name="home.catalog.product.list" 
        alias="product_homepage" template="catalog/product/list.phtml"}}

尝试添加以下内容而不进行任何更改:

column_count="6" products_count="13"

我还修复了此处描述的 RWD 问题: Show a CATEGORY and its products on Homepage, Magento1.9

我已将产品设置为“启用”,将新范围设置为从 2010 年 11 月到 2020 年 11 月,并且我已刷新缓存。主页仍然显示:

There are no products matching the selection.

更新

按照建议添加了category_id,但结果没有变化。

{{block type="catalog/product_list" category_id="2" 
        name="home.catalog.product.list" template="catalog/product/list.phtml"}}

这是类别 2:

enter image description here

最佳答案

要在首页显示所有产品,根类别应在管理类别的显示设置中设置为Is Anchor = yes

关于magento - 无法在 Magento 1.9 主页上显示产品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26918809/

相关文章:

php - 从 magento 中的类别集合中排除类别 ID

OpenCart - 显示折扣后的价格

php - 从 WooCommerce 中的当前用户订单中获取订单 ID

javascript - 在magento中使用自定义模块添加js文件后,结帐页面无法正常工作

javascript - 如何使网站不响应 Magento 1.9

Magento CMS 错误 : Front controller reached 100 router match iterations

javascript - 如何在所有文件的头部添加JS,但在magento中的成功页面上添加不同的JS

php - Magento:如何将制造国属性复制到另一个属性中?

Python Itertools : Complex "product"

magento - 在 Magento 中, block 如何从模型中获取数据?