Magento: set number of products in new products module
Posted by admin in Magento
You can set number of products to be displayed in new product module in your new.phtml file. Find:
<?php $i=0; foreach ($_products->getItems() as $_product): ?>
and add above, so the code looks like this:
<?$_products->setOrder(’news_from_date’)->setPageSize(6)->setCurPage(1);?>
<?php $i=0; foreach ($_products->getItems() as $_product): ?>
Set the number (6) as you like.
On the other hand you can set this number in administration on home cms page. Under Custom desing set the code for new products to look like this:
<reference name=”content”>
<block type=”catalog/product_new” name=”home.new” alias=”product_new” template=”catalog/product/new.phtml”>
<action method=”setProductsCount”><count>8</count></action>
<action method=”addPriceBlockType”>
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
Just set the number in tags.



Please e-mail me your contacts. I have a question < a href=”http://spottovo.ru/ webmaster@spottovo.ru” >…< /a >…
Thank you!!!…
< blockquote >< a href=”http://medicamentspot.com/”>Medicamentspot.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. Low price pills. Buy pills online< /a >…
Buy:Super Active ED Pack.VPXL.Zithromax.Cialis Super Active+.Tramadol.Cialis Professional.Maxaman.Cialis Soft Tabs.Viagra Super Force.Viagra Super Active+.Viagra Professional.Soma.Levitra.Viagra.Propecia.Cialis.Viagra Soft Tabs….