Magento / PHP / Programmings

Display Products from Specific Category on Home Page – Magento

First you have to note the ID of category you want to display at the home page. You can find this on Magento Admin side under category tab.
Magento Admin 2013-12-02 12-14-46

Then go to CMS>>Pages. Then Select “Home Page” from the list of pages.

Add the following code to content tab of that page

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

For latest magento version XML update will works better. Use the following code instead of above, if you go for xml update.You can update this from CMS>>Pages>>Home Page. Then select Design instead of content tab. And add the following code

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

replace the [category id here] with your category id.

This works for me. 🙂


One thought on “Display Products from Specific Category on Home Page – Magento

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s