Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 在网格视图magento类别视图页面中显示5个图像_Xml_Magento_Product - Fatal编程技术网

Xml 在网格视图magento类别视图页面中显示5个图像

Xml 在网格视图magento类别视图页面中显示5个图像,xml,magento,product,Xml,Magento,Product,我试图在分类页面上显示5种产品 app/design/frontend/mytheme/default/template/catalog/product/list.phtml 我正在list.phtml上尝试它,从其他参考资料中我也尝试过 至但这不起作用请尝试以下代码,以便在产品列表页面上每行显示5个产品: <catalog_category_default> <reference name="product_list"> <action method="setC

我试图在分类页面上显示5种产品

app/design/frontend/mytheme/default/template/catalog/product/list.phtml
我正在list.phtml上尝试它,从其他参考资料中我也尝试过


但这不起作用

请尝试以下代码,以便在产品列表页面上每行显示5个产品:

<catalog_category_default>
<reference name="product_list">
<action method="setColumnCount"><count>5</count></action>
</reference>
</catalog_category_default>

5.

您的页面布局是什么?2列还是1列?1)“这不起作用”不是对任何问题的适当描述。2) 为什么
$this->5
而不仅仅是
5
?@KeyurShah页面布局为2列左侧?您想为特定类别页面或所有类别页面显示它吗?@slimshaddyyy在所有页面上,它对所有页面都是通用的