Saturday, May 28

How to Show the Products in Magento Home Page

In magento admin go to CMS-> Manage Pages. then click the home page and add the following code to the "content" tab.

Here is the code to get all Product in Magento Home Page

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}

Here is the code to get products in specific category in mageno home page
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="4" template="catalog/product/list.phtml"}}

Hope it Helps. Thanks...

No comments:

Post a Comment