且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento:/catalog网址路径中的目录

更新时间:2023-11-27 13:07:10

将类别移动到名为目录"的根子类别,然后重新索引.

Move your categories to a subcategory of root called "Catalog", then reindex.

您可以使用cms编辑器内容区域中的以下短代码在首页上的网格中显示产品(或布局更新,语法稍有不同,如果您不熟悉布局更新,应该知道这些语法):

You can display products in a grid on your homepage with the following shortcode in the content area of the cms editor (or layout updates with slightly different syntax which you should know if you are messing with layout updates):

{{block type="catalog/product_list" category_id="4" template="catalog/product/list.phtml"}}

category_id ="4"中的4会替换为您的目录"子类别的ID

Where 4 in category_id="4" would be replaced with your "Catalog" subcategory's ID