Magento 1.9 Product Images Not Showing on Front End – How to Fix

adminfrontendmagento-1.9product-images

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

Best Answer

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'); ?>
Related Topic