Magento: Image zoom: set initial zoom
Posted by admin in Magento
The main product image needed to be zoomed in a little when page loads.
Open Drugs Without Prescription file: /js/varien/product.js cialis usa and find at arounf line 89:
sliderValue:0,
and replace the value with the needed zoom value:
sliderValue:0.2,
Then find at around line 94:
this.scale(0);
and replace the value with the same zoom value:
this.scale(0.2);


AWESOME!
Thanks for posting this.
Some of the Magento quirks are a bit maddening — it’s thanks to the helpful users like you that make the software usable.
Thank YOU!
The image adjusts back to the wrong size if you zoom in to it and zoom out completely.???
I need it be zoom out some??
@Tony: with this tip you can set only initial zoom for image. It zooms out to whole image size. To set zoom out a little use 0.1, witch gives you about 10% image zoom.
yeaah..
Thanks guys !
so cool..