By default product images in the popup window will be resized to fit in the viewport, that's may not what you expected. You may want to show big & sharp images to let customers see details of your products.
You just need to edit the \themes\yourtheme\js\product.js file.
Add this code
1 | 'fitToView' : false, |
To tight below this line
1 | 'hideOnContentClick': true, |
But the above solution is not perfect, people can't close the popup window on small devices, smaller than the width of your thickbox_default image type, mostly phone and tablets.
So the best solution is using this code.
1 2 3 4 5 | 'beforeLoad' : function(){ if($(window).width()>1500) this.fitToView=false; return true; }, |
I would like this option for panda 2, can it be done?
There is an option called "Fits popup images vertically" in panda theme v2's theme theme module for that.
could you say exactly where this is located in the theme of panda 2? Thx !
I found ! Thank you ! You are the best !