首页 文章

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

提问于
浏览
3

我正在尝试在Magento 1.9主页上显示所有产品的列表,但我看到的只是“没有符合选择的产品” . 我已将以下块添加到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

我将产品设置为Enabled,设置从2010年11月到2020年11月的新范围,我刷新了缓存 . 主页仍然显示:

There are no products matching the selection.

Update

按建议添加了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

2 回答

  • 1

    您在块中没有类别ID . 例如,尝试添加 category_id="ID"

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

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

相关问题