Magento商店-网格中的水平项目

Magento商店-网格中的水平项目,magento,Magento,在Magento中,如何指定要在网格中水平显示的产品数量。默认情况下,它是3,我看不到在哪里更改它(我想将它设置为2) 谢谢, Alan。在catalog.xml布局文件中,您可以在产品列表块中添加一个“action”标记,用于设置列数。。。模板(list.phtml)将其称为get[Something],因此您希望布局文件中的方法=“set[Something]”相同。调用这些方法的类位于app/code/core/Mage/Catalog/Block/Product/List.php中。。。

在Magento中,如何指定要在网格中水平显示的产品数量。默认情况下,它是3,我看不到在哪里更改它(我想将它设置为2)

谢谢,
Alan。

在catalog.xml布局文件中,您可以在产品列表块中添加一个“action”标记,用于设置列数。。。模板(list.phtml)将其称为get[Something],因此您希望布局文件中的方法=“set[Something]”相同。调用这些方法的类位于app/code/core/Mage/Catalog/Block/Product/List.php中。。。我想。xml中有一些注释掉的使用“action”进行分页的示例,因此您应该能够复制这些示例。有点模糊…但没有现成的代码可供查看。

在catalog.xml布局文件中,您可以在产品列表块中添加一个“action”标记,用于设置列数。。。模板(list.phtml)将其称为get[Something],因此您希望布局文件中的方法=“set[Something]”相同。调用这些方法的类位于app/code/core/Mage/Catalog/Block/Product/List.php中。。。我想。xml中有一些注释掉的使用“action”进行分页的示例,因此您应该能够复制这些示例。有点模糊…但没有现成的代码可供查看。

很难找到关于Magento 1.4的全面说明,其中包含主题更改和local.xml,但是网格视图中的列可能存在错误,如下所述:

我在local.xml中完成了这项工作,只需一列页面/4列网格:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <!-- Other template tweaks here -->
<catalog_category_default>
    <reference name="content">
      <reference name="category.products">
       <reference name="product_list">
                <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
        </reference>
       </reference>
    </reference>
</catalog_category_default>

空的4
一栏4

很难找到关于Magento 1.4的全面说明,包括主题更改和local.xml,但是网格视图中的列可能存在错误,如下所述:

我在local.xml中完成了这项工作,只需一列页面/4列网格:

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <!-- Other template tweaks here -->
<catalog_category_default>
    <reference name="content">
      <reference name="category.products">
       <reference name="product_list">
                <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>4</count></action>
                <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
        </reference>
       </reference>
    </reference>
</catalog_category_default>

空的4
一栏4