VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: postkat on October 01, 2017, 23:58:18 PM

Title: Generic child variant not working since update to VirtueMart 3.2.4
Post by: postkat on October 01, 2017, 23:58:18 PM
Since the last update there is a problem with the Generic child variant in both details and category view.
The URL changes when you choose a variant but the price doesn't change and the buy now button doesn't appear.
I have tried to disable modules and plugins that could conflict but that didn't help.

Also tried protostar and beez3 template but the problem remains.

Joomla! 3.8.0
VirtueMart 3.2.4


Title: Re: Generic child variant not working since update to VirtueMart 3.2.4
Post by: Studio 42 on October 02, 2017, 00:28:07 AM
Some link to test ?
Title: Re: Generic child variant not working since update to VirtueMart 3.2.4
Post by: postkat on October 02, 2017, 08:35:50 AM
https://www.daylightlamps.co.uk/high-frequency-fixtures/parabolic-fixtures/t8-mat-parabolic-fixture-mounted.html
Title: Re: Generic child variant not working since update to VirtueMart 3.2.4
Post by: Studio 42 on October 02, 2017, 11:50:41 AM
It's a javascript problem.
Uncaught TypeError: Virtuemart.stopVmLoading is not a function
Check if the template have no update.
This file vmsite.js should be loaded using PHP : vmJsApi::jSite();
, but is not loaded.
Check your Virtuemart config if you have selected to load Vm javascript or at last resort add it in your template.
Title: Re: Generic child variant not working since update to VirtueMart 3.2.4
Post by: postkat on October 02, 2017, 16:23:37 PM
Thanks!
Still don't know why vmsite.js did not load on all websites having te same problem but adding it worked.
Could it be the PHP version on the server? (PHP 7.1)
Title: Re: Generic child variant not working since update to VirtueMart 3.2.4
Post by: Studio 42 on October 03, 2017, 11:08:18 AM
Perhaps they moved the php code in the last VM release and you have some overide in your template.
It's very hard to know without access to the PHP files.