Display products from the category on the home page

Get category ID

  1. Open Magento admin panel and go to Catalog > Manage Categories.
  2. Select the necessary category and look for the category ID at the top.(Remember the category ID value as you’ll need it later.)

Create products block

  1. In Magento admin panel go to CMS> Pages>Home page
  2. Switch to the Content tab and into the html code block paste the following code:

  {{block  type=”catalog/product_list” category_id=”7″  template=”catalog/product/list.phtml”}}

Make sure the category_id=”7″ value matches your category ID. When you are done click the Save button at the top.

In case you want to control the number of columns in product listing please use the following code:

 {{block type=”catalog/product_list” column_count=”4″ category_id=”7″ template=”catalog/product/list.phtml”}}

Where the column_count value is the number of columns.


One thought on “Display products from the category on the home page

  1. Pingback: Magento Product and Category Related Functions | Magento For Fresher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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