4

我正在使用magento go。 我创建了一个类别并为其分配了 8 个产品,我想在每行中显示 4 个产品,但它显示 5 个产品。

请给我解决方案。

谢谢

4

2 回答 2

6

将此代码放入您要显示 4 个产品的类别中,只需从管理员打开您的类别并打开自定义设计选项卡,然后将以下代码放入自定义布局更新字段中。

<reference name="product_list">
<action method="setColumnCount"><columns>4</columns></action>
</reference>

希望对你有帮助

于 2012-04-26T07:32:31.643 回答
0

转到这个路径:magento_folder/app/design/frontend/mytheme(your_package)/neo(your_theme)/layout/catalog.xml
写这个:<action method="setColumnCount"><count>4</count></action>

<catalog_category_default translate="label">
<reference name="content">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setColumnCount"><count>4</count></action>
" "
" "
" "
</block>

然后在下面的同一个 catalog.xml 文件中添加相同的代码(在 :<catalog_category_layered translate="label">标签下),如下所示:

<catalog_category_layered translate="label">
<reference name="content">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<action method="setColumnCount"><count>4</count></action>
" "
" "
" "
</block>

希望这可以帮助你

于 2012-10-19T06:03:21.693 回答