please visit this link : http://demo.kidsdial.com/boys-toys/bikes-trikes-ride-ons/peacock-kinder-blocks-play-set.html

click on "product image", you can see image ,image will expand with original size [lightbox image]

I want to restrict that lightbox image size to 1200.

please see below media.phtml file

media.phtml file = http://pastebin.com/8yaDrs8Q

help me to restrict the lightbox image size for 1200.

let me know if you need any clarifications,

thanks in advance,....


Use Magento builtin function:

Took from app/design/frontend/rwd/default/template/catalog/product/view/media.phtml

            $_imageUrl = $this->helper('catalog/image')
                              ->init($_product, 'image', $_image->getFile())
  • hi @Jeroen thanks for reply, i did it under themename/template/catalog/product/view/media.phtml seems it's not working, is anything else i have to do? Mar 8 '15 at 6:38
  • Are you sure that file is being used? Do you have the variable $_image? Take a look in the rwd file for a full example
    – Jeroen
    Mar 9 '15 at 13:56

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.