4

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

10
  • try reindexing once from system > index management...... – Baby in Magento Dec 7 '16 at 16:32
  • I tried all these solutions.. not working @Baby in Magento – Xabby Dec 7 '16 at 16:34
  • did you checked in product view page ? clearing cache, private window , uploading image to new products? – Baby in Magento Dec 7 '16 at 17:11
  • yes checked there , created three products but no one is showing the image at all either on category page or details pages @Baby in Magento – Xabby Dec 7 '16 at 17:48
  • Can you show your list.phtml? At least image part? – Adarsh Khatri Dec 7 '16 at 22:10
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'); ?>
0

Try reducing the size of the image and upload. It is applicable for catalogue section as well.

0

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.