Magento - How to display ALL PRODUCTS in the homepage?

Christian Young picture Christian Young · Nov 23, 2010 · Viewed 68.2k times · Source

Display all products in the homepage? Anyone who have had done this?

Note: This can be done in the CMS pages by adding manually each and every category id.. I don't want to do that.. Too much hassle if I have hundreds of categories..

I think this can be coded but I don't know where to start? Thanks and more power!

Answer

Petet picture Petet · Nov 23, 2010

Go to the homepage in the CMS -> Manage pages and add the following code snippet into the WYSIWYG

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

This should then list all of the products in your shop on that page.

You could also use the same code to drill down into a specific category, by adding the category variable, e.g.

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