Daniel Flippance
Daniel Flippance

Reputation: 7932

Can't show products on Magento 1.9 home page

I'm trying to show a list of all products on the Magento 1.9 home page but all I see is "There are no products matching the selection". I've added the following block into CMS>Home Page>Content:

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

Tried adding the following with no change:

column_count="6" products_count="13"

I've also fixed the RWD problem described here: Show a CATEGORY and its products on Homepage, Magento1.9

I've set the product to be Enabled, set the New range from Nov 2010 to Nov 2020 and I've flushed the cache. The home page still shows:

There are no products matching the selection.

Update

Added the category_id as suggested but no change in the result.

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

Here's category 2:

enter image description here

Upvotes: 3

Views: 4524

Answers (2)

Deepak
Deepak

Reputation: 31

To display all products on home page, root category should be set as Is Anchor = yes in display setting in manage categories

Upvotes: 2

subroutines
subroutines

Reputation: 1458

You don't have a category id in the block. Try adding category_id="ID", for example

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

Upvotes: 1

Related Questions