magento-categories-listing-image

Listing Categories On Home Page

By default, Magento uses a CMS page for the home page. You can add a markup tag to the
content of your home page to display a product list from a specific category.

To list a category on the home page:

1. On the Admin menu, select Catalog > Manage Categories.
2. In the category tree, select the category that you want to use. Take note of the category ID that
appears in parentheses after the category title. For example: (ID:4)
3. On the Admin menu, select CMS > Pages. Then, open your home page and do the following:
a. In the panel on the left, select Content.
b. In the editor, “comment out” the current code by enclosing it in beginning and ending
comment tags.

c. Paste the following markup tag into the editor, substituting the ID of the category that you
want to appear:
{{block type=”catalog/product_list”
name=”home.catalog.product.list”
alias=”products_homepage” category_id=”4″
template=”catalog/product/list.phtml”}}

If you ever want to restore your previous home page, simply remove the comment tags
from the original code, and comment out the markup tag. If you don’t plan to ever use the
original code, it can be deleted from the page.

4. Click the Save Page button.
5. In the message at the top of the workspace, click the Cache Management link.
6. Select the checkbox for the invalid Layout cache. Then, click the Submit button to refresh the
cache.

Leave a Comment

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