Add Featured Products to Home Page

Last modified by Nick Weisser on Fri, June 25, 2010 11:10
Source|Old Revisions  

This is an old revision of the document!

This article will show you an easy way to display products of your choosing on the home page.

  1. Create a category to contain the featured products. Call it e.g. “Featured” or “Home Page”. Set “Is Active” to No. That way, it won’t display in the catalog menu.
  2. After saving the category, please note what ID it gets. You can see it in the last part of the URL. If the URL ends with catalog_category/edit/id/8/, the ID is 8.
  3. Add products for the home page to the new category.
  4. Edit the Home Page (CMS → Manage Pages → Home Page) and add the following content, where 8 should be replaced by your category ID:
{{block type="catalog/product_list" category_id="8" template="catalog/product/list.phtml"}} 

If you want a view that is different from the category lists, you can copy and modify list.phtml and change the path above.

Please note: In order to make this work for more than one block of products with different category IDs on the same page, you need to add the following code at the end of your phtml file(s):

//unset catalog to allow using template for multiple categories on single page

Alternative way:

If you want more in depth way, try to view this post:

If you’re using Magento v1.1.5 or later, you might want to use these code snippets instead: This approach uses core functions instead of using Zend DB to figure out how to build a query statement.