I have created a product and assigned an image to it but on fronend it still showing the demo magento image not mine updated image.
List.phtml Image part:
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="product-image">
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($size['width'], $size['height']) ?>" alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="img-responsive"/>
<?php if(basename($_product->getData('image')) != basename($_product->getData('small_image'))): ?>
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize($size['width'], $size['height']) ?>"
alt="<?php echo $this->stripTags($_product->getName(), null, true) ?>" class="img-responsive img-two"/>
<?php endif ?>
</a>
Admin panel product image: enter image description here
Front end not showing actual image but the dummy magento image: enter image description here
Indexes are updated cache is cleared: enter image description here
2 Answers 2
In my case i have just fixed it by adding echo to my image src so it working now:
<?php echo $this->helper('catalog/image')->init($_product, 'image'); ?>
Try reducing the size of the image and upload. It is applicable for catalogue section as well.
Explore related questions
See similar questions with these tags.
system > index management......list.phtml? At least image part?