如何限制新产品块中显示的产品数量?通过 cms/pages/design/Layout 更新 XML
<block type="catalog/product_new" name="home.catalog.product.new" template="catalog/product/new.phtml" >
<action method="setColumnCount"><count>5</count></action>
<action method="setLimit"><limit>5</limit></action>
</block>
setLimit 不起作用,也不起作用
<action method="setDefaultGridPerPage"><limit>5</limit></action>
或者:
<action method="setData"><key>limit</key><value>3</value></action>
或者:
<action method="setProductLimit"><count>5</count></action>
或者:
<action method="setProductsLimit"><count>5</count></action>
或者:
<action method="setProductsCount"><count>5</count></action>