In magento at my home page i have added the the product block

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

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

And i have added two products with different categories moreover included both the products into a default_category (id:2)

But still i am getting that message so how can i display the products on my home page. I have set the quantity to 5 and 15. Still i dont get those products.

Flushed cached and Re-Indexed them

Looking for help ? Thanks in advance

  • What is the visibility of the products?
    – user4351
    Jul 20, 2014 at 9:12
  • Actually i am new to magento, well the visibility is search, catalog Jul 20, 2014 at 9:14
  • Nm that, no products matching the selection. Next up: are they 'enabled'. You checked stock, so this is pretty much what is left.
    – user4351
    Jul 20, 2014 at 9:29
  • Yup they are enabled. I installed the sample data its all working now. That means I was somewhere wrong at configuration. Jul 20, 2014 at 9:32
  • are you sure the products assigned to the category whose id is 2?
    – MTM
    Jul 20, 2014 at 9:43

4 Answers 4


Please check following settings are done for your product

  1. The products must be Visible in Catalog.
  2. The products must be Enabled.
  3. Product must have a stock Quantity.
  4. The product must be set to In Stock.
  5. If the product is set not to track stock, it still need to have a stock Quantity and be set to In Stock.
  6. The product must be assigned to the target Category.
  7. If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
  8. You must refresh your “var/Cache” & rebuild all indexes from admin > system > index management

Hope this helps you.

  • Did all the steps, but it does still show There are no products matching the selection. Im on a fresh Magento
    – Black
    Feb 7, 2020 at 14:38

Please use below code to show specific category product on homepage.

$catid = $this->getCategoryId();

$_category = Mage::getModel('catalog/category')->load($catid);

$_products = Mage::getModel('catalog/product')->getCollection()

if ($_products->getSize()): 

 $i=0; foreach ($_products->getItems() as $_product): ?>

  echo $_product->getName();



If your products were initially showing and then suddenly disappeared, then you must change product as new to date. Go to catalog>Products>General and then change the dates to a later one (depends on your arex product tab settings) because once the date passes away, the products start moving away from the home page tabs.


I started a fresh magento installation and added a new category and then I added a grouped product and a simple product. I linked the simple product to the group product and then I linked the group product to the category. But nothing showed.

I also followed the troubleshooting list by from mrumair.com, but nothing worked.

I figured out, that my grouped product was not showing, because I added a "Custom option" to my simple product.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.