VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: shkiv on August 02, 2013, 13:55:45 PM

Title: product main (shown in fancybox) picture autoresize disabling
Post by: shkiv on August 02, 2013, 13:55:45 PM
Hi all.
viruemart 2.0.22
joomla 2.5.13

product main picture, that is shown in fancybox, is resised automaticly in order to show whole picture in browser window.
ex.: if i`m looking 4096x2048 picture on the screen with resolution 1024x768 this picture will be resised and i will see whole picture.

how can i disable this function?
Title: Re: product main (shown in fancybox) picture autoresize disabling
Post by: Maxim Pishnyak on August 02, 2013, 17:50:20 PM
I'm confused. Do you have a link or a screen shot?
Title: Re: product main (shown in fancybox) picture autoresize disabling
Post by: shkiv on August 02, 2013, 19:44:17 PM
link (http://w1.tempadmin.pro/katalog-detskih-kimono/kimono-qsakura-ximeq-na-devochku-detail.html)

original image size is 808px × 1 707px scaled to 382px × 809px

screenshot (http://w1.tempadmin.pro/skaling0.png)

ps. sorry for pure english =(
Title: Re: product main (shown in fancybox) picture autoresize disabling
Post by: shkiv on August 02, 2013, 20:35:36 PM
i`m happy, i`ve solved it.
to disable autoscale:
1) edit file /components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js
find string "autoScale = true" and set it false
2) same in file /components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.js

my general trouble was that i tyred to find an answer at joomla and virtuemart resources, but it was first line in google, when i asked "fancybox disable scale" instead of "virtuemart disable scale"
:)
Title: Re: product main (shown in fancybox) picture autoresize disabling
Post by: Maxim Pishnyak on August 02, 2013, 23:00:53 PM
Anyway thanx for sharing your experience.