Skip to content

Add All Products to Home Page in Magento

I’ve been working on a rather small business Magento store the last little bit, doing minor tweaking, etc.

One of the major things as a new Magento user you’ll notice, is the front page, by default, is very empty.

Quick note: this is for Magento ver. 1.7.x.x

All Products

The solution for me today was to add the entire product list to the home page of the Magento install.

To do this:

  1. Go to CMS -> Manage Pages
  2. Select Home Page
  3. Add the following code (a new block) to the body of the page:
    {{block type=”catalog/product_new” name=”” alias=”product_homepage” template=”catalog/product/new.phtml”}}
  4. Click Save

Your products should now show up on your home page.

New Products

Naturally, if you have a large store, you may just want to add the products selected as New. This means that you must explicitly mark the product  as new using ‘Set Product as New from Date’ and ‘Set Product as New to Date’ options in the ‘General’ product information page in the admin tool.

To add the new products only, the following code should be inserted into the home page content window, as above:

{{block type=”catalog/product_new” name=”” alias=”product_homepage” template=”catalog/product/new.phtml”}}

All Products from 1 Category

To add all products from one category, first you’ll need to find the category number you want to add all products from. The category ID can be found when you go to “manage category” and then select the category you want. The ID is written in the header.

To add these specific products, the following code should be inserted into the home page content window, as above:

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” category_id=”4″ template=”catalog/product/list.phtml”}}
Where category_id is the number you found above.
I hope this helps!
The Magento e-commerce wiki  was very helpful, and might prove valuable for you to also reference.

3 thoughts on “Add All Products to Home Page in Magento”

  1. I want to display new products in homepage. But it is not display products

    Can you help me?

    I have this code script

    4 8


    getChildHtml(‘product_new’); ?>

    1. Hong, I’m not exactly sure what that code is supposed to represent or where you’re putting it. Perhaps a good place to start is with the instructions above in the article?

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 4 =