Have you ever found yourself in a situation where you wanted to display products from a certain category on your homepage? Well wonder no more, this blog post will show you how!
1) Identify the category ids of the categories that you want to display.
To do this:
Go to the admin system > catalog > manage categories and click on the category that you want.
The category id will appear at the top of the page like so:
The category id for the Furniture category in the demo install is ID 10. Make a note of all the category id’s you want to use as you will need the numbers later.
2) Open up the homepage in the admin:
cms > pages > homepage and click on the content tab.
3) Add the following code to display all products from your category:
[code]{{block type="catalog/product_list" column_count="4" category_id="10" template="catalog/product/list.phtml"}}[/code]
This code will display all the products from the ‘furniture’ category, as it has category_id=”10″
Simply change this id to the one you wrote down earlier. For multiple categories to display, just copy and paste the code as many times as you need it, ensuring you add the appropriate id.
Note: column_count=”4″ has been added as I am using a 2 column layout. Without this the column count will default to 3.
The finished result:
If you are after an experienced Magento designer or Magento developer feel free to contact us.





