0
votes

I can see all the images across other pages, just on the home page those thumbnails not appearing, that is the php code I have got and how I am calling them. Default images are showing without any problem. I have already tested many solutions from forums...etc

$_productCollection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect(array('name', 'price', 'short_description'), 'inner')
->addCategoryFilter(Mage::getModel('catalog/category')->load($cat_id));

if($_productCollection->count()): ?>

Calling images:

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail')->resize(80, 110); ?>" height="105" />
1

1 Answers

1
votes

Try to print:
var_dump($_product->getId()) and check if it throws id or not. Also try to change the addAttributeToSelect() as

->addAttributeToSelect('*')

Let me know if that works.

Thanks