Magento | Show specific category on home page
Many times we come with the difficulty that to set the category on the home page.
I will demonstrate you here how to set up the particular category display on the home page.
First you have to decide what category you want to show on the home page, Go to the magento admin panel and then go to Catalog -> Manage Category and then select the particular category when you select the particular category then you will find that the category id stated there.
Go to the cms -> pages by the menu bar and find for the identifier url "home"
Edit this and go to the content tab area.
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}
paste the above code to the area where you wish to show the categories product listing.
It will list all the catalog, search visibility scope product on the front end home page.
Many times we come with the difficulty that to set the category on the home page.
I will demonstrate you here how to set up the particular category display on the home page.
First you have to decide what category you want to show on the home page, Go to the magento admin panel and then go to Catalog -> Manage Category and then select the particular category when you select the particular category then you will find that the category id stated there.
Go to the cms -> pages by the menu bar and find for the identifier url "home"
Edit this and go to the content tab area.
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}
paste the above code to the area where you wish to show the categories product listing.
It will list all the catalog, search visibility scope product on the front end home page.
I have copied this code for category to be shown on my homepage, but it has given a Fatal Error message on my homepage.
ReplyDeletePlease advise what should I do.
You have to paste the following code to your cms content section
Delete{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}
It will work for sure. Anyway can you show me what error you are getting.