【问题标题】:Display 5 images in grid view magento category view page在网格视图 magento 类别视图页面中显示 5 个图像
【发布时间】:2014-02-28 11:36:14
【问题描述】:

我正在尝试在类别页面上显示 5 个产品

app/design/frontend/mytheme/default/template/catalog/product/list.phtml

我正在 list.phtml 上尝试,从其他参考我也尝试过

<?php $_columnCount = $this->getColumnCount();?><?php $_columnCount = 5 ;?> 但这不起作用

【问题讨论】:

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

标签: xml magento product


【解决方案1】:

尝试使用以下代码在您的产品列表页面上每行显示 5 个产品:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-23
    • 1970-01-01
    • 1970-01-01
    • 2012-01-30
    相关资源
    最近更新 更多