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. 







6 comments:

  1. Its a kind a nice blog and pretty well maintained. This post is very informative.
    Thanks for this post, appreciated. Keep updating your post.
    CR Coil In Delhi

    ReplyDelete
  2. I was looking for this kind of posts, finally found it. This post is very informative. Really appreciated, Keep updating your post.
    all natural skin care products wholesale

    ReplyDelete
  3. This post is very nice and informative. Glad to see posts like this. Thanks for it and keep updating.
    uboardindia

    ReplyDelete
  4. Really an amazing post, thanks for it and keep updating.
    gemstone shop in south Delhi

    ReplyDelete