Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Zoom Effect(SKU# FLEX-00005)

TOPIC: Zoom Stops Working When Multi-Variant Selected

Zoom Stops Working When Multi-Variant Selected 8 years 10 months ago #12635

Joomla: 3.4.1
Virtuemart: 3.0.9

Everything works fine when you load a page directly, however after selecting different options via the multi-variant custom field the zoom breaks in a pretty annoying fashion, unless you refresh the page. I have also reported the problem to the VirtueMart core team, but they said the problem is with the zoom plugin not using in-line javascript.

I've sent multiple emails regarding the issue, but have gotten no response. So I'm hoping for some sort of answer. Can this be fixed in an update?

Thank you,
Zoray
Last Edit: 8 years 10 months ago by Zoray Kraemer.
The topic has been locked.

Zoom Stops Working When Multi-Variant Selected- VM3 8 years 10 months ago #12636

Hi,

Changing custom fields in VM3, triggers the AJAX to load the child product's content (the image-content where the ZoomEffect runs is refreshed dynamically via AJAX) thus the ZoomEffect has to be re-initilized after the AJAX is completed.

This is the idea behind this problem, dynupdate.js needs to be modified to tackle this problem.

Here is what you need to do:

- Find this JS file: /components/com_virtuemart/assets/js/dynupdate.js
- Duplicate this file and upload to here: /templates/YOUR_TEMPLATE/js/dynupdate.js
(so, updating VM won't retrieve dynupdate.js file to stock and your edit will be preserved)

- Open the /templates/YOUR_TEMPLATE/js/dynupdate.js file and insert this line;
if (typeof jQuery.fn.flexibleZoom == 'function') { jQuery.fn.flexibleZoom();}
to here:

Attachment Pasted_Image_5_16_15__5_27_PM.png not found



PAY ATTENTION TO THE SCREENSHOT AND THE PLACE WHERE I INSERT THE LINE (after Virtuemart.isUpdatingContent = false;)

This will re-initalize the ZoomEffect upon changing the custom field option and zoomEffect will keep running without requiring the page refresh.

Regards.
Last Edit: 8 years 7 hours ago by Support.
The topic has been locked.

Zoom Stops Working When Multi-Variant Selected- VM3 8 years 10 months ago #12681

Sorry, but this didn't work. No effect whatsoever on the issue.
Also tried updating the original file in components/com_virtuemart/assets/js, but that did not work either.
Any other ideas?
Z
The topic has been locked.

Zoom Stops Working When Multi-Variant Selected- VM3 8 years 10 months ago #12683

You need the latest version of ZoomEffect (v5.2) before having this patch.

Please download the latest ZoomEffect (i just sent the download link to your email address).
After installing the latest zoomEffect, do the patch to your dynupdate.js that explained here and everything should work just fine. TEST and CONFIRMED.

regards
The topic has been locked.

Zoom Stops Working When Multi-Variant Selected- VM3 8 years 10 months ago #12698

Thank you!
I did have v.5.1 installed, and after updating to v5.2 it works great!
The topic has been locked.

Zoom Stops Working When Multi-Variant Selected- VM3 8 years 9 months ago #12717

thanks for confirming.

case solved. topic is closed.

regards.
The topic has been locked.
Time to create page: 0.071 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo