[英]Magento products are not displayed in front end home page
I have installed a theme for magento store in order to display the products which i have added recently i have written this code in the content of the home page : 我已经为magento商店安装了一个主题,以便显示我最近添加的产品,我已经在主页的内容中编写了以下代码:
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}
using this it is displaying the preloaded products of theme , to display the products of my category i changed this to : 使用它来显示主题的预加载产品,以显示我类别的产品,我将其更改为:
{{block type="catalog/product_list" category_id="39" template="catalog/product/list.phtml"}}
But now it is giving me an error like : 但现在它给我一个错误,如:
There are no products matching the selection.
and same error it is showing when a category is clicked in the navigation bar. 并在导航栏中单击类别时显示相同的错误。
创建新的根类别(将其设置为当前Web商店的默认类别)并将所有类别产品分配给根类别(产品必须同时是类别和根类别)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.