top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to manage home page prodoct in magento?

+4 votes
622 views
How to manage home page prodoct in magento?
posted Nov 3, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Display New products

Go to “CMS – Manage Pages” and select “Home Page” from the list of pages.

Code for displaying products marked as new:

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

Please take note that in order for products to show up using this method, the products MUST be marked as new. To do this, simply select a day from the ‘Set Product as New from Date’ and ‘Set Product as New to Date’ in the ‘General’ tab while modifying your product.

Display All Products

To display ALL products, go to “CMS > Manage Pages” and select the homepage that you are currently using.

Code for displaying all products:

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

Display All Products From One Category

Go to “CMS – Manage Pages” and select “Home Page” from the list of pages.

Code for displaying all products from one category:

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

Be sure to change the category ID number (4 in the example code above) to the category ID of the one you wish to display.

answer Jan 22, 2016 by Deepak Negi
0 votes
  1. Open Magento admin panel and go to Catalog > Manage Categories.

Select the necessary category and look for the category ID at the top. Remember the category ID value as you’ll need it later

In Magento admin panel go to CMS> Pages>Home page.

Switch to the Content tab and into the html code block paste the following code:

{{block  type="catalog/product_list" category_id="4"  template="catalog/product/list.phtml"}}

In case you want to control the number of columns in product listing, please use the following code:

{{block type="catalog/product_list" column_count="4" category_id="4" template="catalog/product/list.phtml"}}

Where the column_count value is the number of columns.

Navigate to System->Permissions->Blocks.

Click on the Add new block button.

Specify your Block Name, which is: catalog/product_list.

And allow the Block using the YES/No Dropdown list

answer Sep 1, 2016 by Magento_ocodewire
...