- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to display products of specific category on home page
February 4, 2016
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
-
Open Magento admin panel and go to Catalog > Manage Categories.
-
Select the necessary category and look for the category ID at the top. Remember the category ID value as you’ll need it later:
-
In Magento admin panel go to CMS> Pages>Home page.
-
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"}}
-
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.
-
Navigate to System->Permissions->Blocks.
-
Click on the Add new block button.
-
Specify your Block Name, which is: catalog/product_list.
-
And allow the Block using the YES/No Dropdown list:
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.