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

TOPIC: No default php files included

No default php files included 1 month 2 weeks ago #15752

I installed the plugin but need the two additional php files for a 3rd party template. They cannot be found in the package which just contains the plg zip and the tutorial. I am using a third-party template.

Attachment zoomer.jpg not found



However, the zoom effect works ok until I change a mutivariant option within the product description. The zoom effect then stops working for all option settings, including the default one where it worked initially. If I reload the product (hence with the default option) the zoom works OK until the option is again changed.
Last Edit: 1 month 1 week ago by Rod Macmillan. Reason: Add reference to third-party template
The administrator has disabled public write access.

No default php files included 1 month 1 week ago #15759

Hi Rod,

Since CartVariant triggers an AJAX request (which is practically reloading the page without the hard-refresh), ZoomEffect function has to be re-initialized.

In order to do this re-initialization upon completing the AJAX call, find this file:

ROOT/components/com_virtuemart/assets/js/dynupdate.js

and copy-paste it to here:

ROOT/templates/YOUR_TEMPLATE/js/dynupdate.js

(this copy-pasting will avoid reseting your modification once you update the Virtuemart Component)

then open this file: ROOT/templates/YOUR_TEMPLATE/js/dynupdate.js and find these lines (around 49th line):
if (Virtuemart.updateChosenDropdownLayout) Virtuemart.updateChosenDropdownLayout();
//Virtuemart.product($("form.product"));

right after the above lines, add this line:
if (typeof $.fn.flexibleZoom !== "undefined") $.fn.flexibleZoom();

so, the final look will become like these:
if (Virtuemart.updateChosenDropdownLayout) Virtuemart.updateChosenDropdownLayout();
//Virtuemart.product($("form.product"));
if (typeof $.fn.flexibleZoom !== "undefined") $.fn.flexibleZoom();


and that's it. This will re-init the ZoomEffect when the AJAX call is completed within the product details page.

Regards.
The administrator has disabled public write access.

No default php files included 1 month 1 week ago #15765

Thanks for this. Problem solved.

Regards
The administrator has disabled public write access.
Time to create page: 0.092 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