I want to display more than 5 (exact 10) new product on Static CMS home page on a Magento CE 1.9.1.1 installation with Magento default sample data . I already marked more than 10 product as new items.
To get it, I made a child theme for Magento RWD theme and in its local.xml file, I put the below code snippet.
<layout version="0.1.0">
<cms_index_index translate="label">
<reference name="content">
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new_list.phtml" after="cms_page">
<action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action>
<action method="setColumnCount"><columns>2</columns></action>
<action method="setProductsCount"><count>10</count></action>
</block>
</reference>
</cms_index_index>
</layout>
But Magento only display 5 new products on home page. If I reduce the product count less than 5 (<action method="setProductsCount"><count>3</count></action>
), the above code works and Magento output 3 products as New Items.
But for more than 5 items, setProductsCount
fails.
I searched different pages & none of the solutions works for me. There is a same question here for Magento 1.7.
how do I show more than 5 featured products on homepage in magento 1.7?
How Magento limit this count? In the above page, I realize that we are going to load the block class, Mage_Catalog_Block_Product_New
from app/code/core/Mage/Catalog/Block/Product/New.php
file. In that file, there is default count variable declaration.
const DEFAULT_PRODUCTS_COUNT = 10;
Can you suggest a solution?