This tutorial will show you how to add products from the specific category to the Magento home page.
Get category ID
- 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.
Create products block
- 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:
Make sure the category_id="7" value matches your category ID. When you are done click the Save button at the top.
In case you want to control the number of columns in product listing please use the following code:
Where the column_count value is the number of columns
Make sure you cleared Magento cache. Otherwise your changes may not affect your store frontend.
No comments:
Post a Comment