VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: cimran on September 08, 2014, 14:33:39 PM

Title: Product Image Popup
Post by: cimran on September 08, 2014, 14:33:39 PM
Hi

http://www.chairimports.com.au/catalogue/table-tops/571/acajou-table-top-detail
If i click on the product image, it popups/zoom out; I want to remove this function
Can you please guide, I use joomla2.5 & VM 2.0.26d
Title: Re: Product Image Popup
Post by: jenkinhill on September 08, 2014, 15:13:49 PM
Edit the product details override file to remove the modal/zoom links around the product image.
Title: Re: Product Image Popup
Post by: David on March 28, 2017, 02:48:54 AM
Quote from: jenkinhill on September 08, 2014, 15:13:49 PM
Edit the product details override file to remove the modal/zoom links around the product image.

I cannot find a way how to eliminate the zoom function on the product detail picture - can you be more specific? I just need a plain image there.
Title: Re: Product Image Popup
Post by: jenkinhill on March 28, 2017, 12:25:27 PM
That answer was to a 2 year old question for VM2!!!  There is no zoom function in the default VM 3.x product details template, just a fancybox popup. If you see something different then I guess you use a commercial template?
Title: Re: Product Image Popup
Post by: David on March 29, 2017, 00:00:18 AM
Yes, I mean that popup. I suppose it should show images in full size (= zoomed). I want to get rid of the popup.
Title: Re: Product Image Popup
Post by: jenkinhill on March 29, 2017, 00:07:07 AM
In that case edit and override  components/com_virtuemart/views/productdetails/tmpl/default_images.php  unless you are already using overrides, in which case edit templates/[your joomla template]/html/com_virtuemart/productdetails/default-images.php
Title: Re: Product Image Popup
Post by: David on March 29, 2017, 10:24:59 AM
Well, I was not sure how to modify the JavaScript in default_images.php to leave just the plain image, so I used custom CSS:


div.main-image a {
    pointer-events: none;
    cursor: default;
}
Title: Re: Product Image Popup
Post by: jenkinhill on March 29, 2017, 11:33:17 AM
Yes, a css override is a good way to do it.