{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}

That line of code lists up the products from the category id 4. But i want to display all the 48 products from the category id 4 on the homepage while in the other categories i want to display 20 items per page.

Note :

All my category pages are in list mode while the homepage featured category is in grid mode.


you can set category id in action method like below

<block type="catalog/product_list" name="featured" template="catalog/product/list.phtml">
        <action method="setCategoryId"><category_id>[category id here]</category_id></action>


<action method="addPagerLimit"><mode>grid</mode><limit>20</limit></action>


And for default view of featured product as grid mode. i would recommend you to use your own custom .phtml file to list those product from sepecific category

you can also refer this link

hope this will sure help you.


Try adding

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" products_count="6" template="catalog/product/list.phtml"}}

This is most commonly used throughout magento themes.

  • Thank you but i have already mention that in my question. I want to display all the 48 products from that category on the homepage. But i want to display just 20 items per pages in the other category.
    – boksaa
    Feb 11 '15 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.