2

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? – Melvyn Jul 20 '14 at 9:12
  • Actually i am new to magento, well the visibility is search, catalog – Harshit Chaudhary Jul 20 '14 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. – Melvyn Jul 20 '14 at 9:29
  • Yup they are enabled. I installed the sample data its all working now. That means I was somewhere wrong at configuration. – Harshit Chaudhary Jul 20 '14 at 9:32
  • are you sure the products assigned to the category whose id is 2? – MTM Jul 20 '14 at 9:43
9

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.

0

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()
               ->addCategoryFilter($_category)
               ->addAttributeToSelect('*')
               ->setOrder('position','Asc');


if ($_products->getSize()): 

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

  echo $_product->getName();

endforeach; 

endif;
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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