0

This is the part of code that calls the media.phtml

    <div class="product-img-box">

        <?php echo $this->getChildHtml('media') ?>

    </div>

I have checked this on frontend and found that nothing come between these div, thats why the images are not displayed in detail page. I have checked and run same code on localhost its working. But not working on live site. Can any one tell are fix my problem.

Thanks in advance.

1 Answer 1

1

Have you marked Radio button for product image as Base Image in Administration area on live site? This radio button causes to display the product image on Product detail Page. please check.

enter image description here

7
  • I have already marked all radio. My problem is, images are not displaying when we click on a product and go to product detail page. On rest pages eg. featured product, category product images are working but when we click for product detail page there is no image. Hope you understand my query. Jun 11, 2013 at 10:00
  • Check if media folder has proper permissions set. Jun 11, 2013 at 10:40
  • Folder permission and memory limit is OK. While playing around with code i got some idea. that <?php echo $this->getChildHtml('media') ?> this code not proper calling my media.phtml file. So i have copy media.phtml file code and replace with above line. Now, images are displayed. I dont know its right way are not. But i am about to reach with my SOLUTION> If any body can provide another best way, please share, because i know my solution is not a right way. Hope someone comes with a right answer. Jun 11, 2013 at 11:47
  • It seems your media.phtml is overridding by another module. Have you installed any module regarding product detail page. If yes, then please try to disable them and check again. If not, then please check catalog.xml and find the tag <catalog_product_view>, you'll find here media.phtml as template name. If it is not available then it is a problem of xml file.
    – aforankur
    Jun 11, 2013 at 12:17
  • I have search for <catalog_product_view> tag, in catalog.xml, but its no longer exists there. Can you please share code for that. Also image zooming and more views are not displayed. Jun 12, 2013 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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