Showing posts with label How to Display Products on the Frontpage of Magento. Show all posts
Showing posts with label How to Display Products on the Frontpage of Magento. Show all posts

Saturday, 13 February 2016

How to display products of particular category on Home Page in Magento

If you want to display products of the category on your home page, so first need the category ID. You can easily find category ID from 

Magento Admin Panel -> Catalog -> Manage Categories 




On the Categories page you click on the particular category from the menu on the left and the Category ID will be displayed at the top of the screen(right side). Copy this ID. For example, in the screen above the default category ID is 2.


Now, open the CMS -> Pages. Here, you see all pages list.





Open Home Page and click on Content tab (Left Side).

Paste the following code in text editor: 

{{block type="catalog/product_list" category_id="2" template="catalog/product/list.phtml"}}




You can change the "category_id" according to your requirement.

Now you can save your page and all products of the category will be displayed on your home page.

In case the changes are not displayed on your home page you should clear your Magento Cache from your Admin Panel  

System -> Cache Management 

section.

Now, your products are displaying on Home page.