我为magento商店安装了一个主题,以便显示我最近添加的产品。我在主页的内容中写了这段代码:
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}
使用它可以显示主题的预装产品,为了显示我所属类别的产品,我将其更改为:
{{block type="catalog/product_list" category_id="39" template="catalog/product/list.phtml"}}
但现在它给了我一个错误,比如:
There are no products matching the selection.
以及当在导航栏中单击类别时显示的相同错误。
创建新的根类别(将其设置为当前web商店的默认类别)并将所有类别产品分配给根类别(产品必须既是类别又是根类别)。。