Categories

Featured templates

Magento. How to display products of specific category on home page

Ray Taylor February 4, 2016
Rating: 4.4/5. From 19 votes.
Please wait...

This tutorial will show you how to add products of specific category to Magento home page.

Magento. How to display products of specific category on home page

  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:

    magento-display-products-from-the-category-on-the-home-page1

  3. In Magento admin panel go to CMS> Pages>Home page.

  4. Switch to the Content tab and into the html code block paste the following code:

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

    magento-display-products-from-the-category-on-the-home-page2

  5. 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="4" template="catalog/product/list.phtml"}}
    		

    Where the column_count value is the number of columns.

  6. Navigate to System->Permissions->Blocks.

  7. Click on the Add new block button.

  8. Specify your Block Name, which is: catalog/product_list.

  9. And allow the Block using the YES/No Dropdown list:

    magento-display-products-from-the-category-on-the-home-page3

Feel free to check the detailed video tutorial below:

Magento. How to display products of specific category on home page

If you already have a website dashboard and want a different kind of template, review our Bootstrap Admin Themes.

Best Magento Themes
This entry was posted in Magento Tutorials and tagged cateogry, home, Magento, page, product. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket