VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Geppux on October 07, 2016, 10:53:09 AM

Title: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 07, 2016, 10:53:09 AM
Joomla 3.6.2
VM 3.0.18
After I updated the Virtuemart version from the 3.0.16 to 3.0.18, when I choose the first variant the page doesn't show me the other variants; you can check here http://www.mulligan.it/en/golf-clubs/iron-sets/callaway-steelhead-xr-irons-detail.html
Note that when you choose the first variant "composizione set" the address change but there is not the choice of the second variant. before the update it was working correctly.
Thank you.
Giuseppe
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: GJC Web Design on October 07, 2016, 11:07:36 AM
see

http://forum.virtuemart.net/index.php?topic=135634.msg472611#msg472611
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 07, 2016, 11:34:41 AM
Thank you GJC I solved modifying the template file.

Giuseppe
Title: Re: [SOLVED] Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 07, 2016, 19:10:26 PM
Sorry I think I solved but it's not true.
Now, if I choose the first variant appear the variants for the second choice but  if I change the first variant it stop working... you can see it here http://www.mulligan.it/it/attrezzatura-da-golf/set-di-ferri/callaway-big-bertha-os-irons-detail.html or here http://www.mulligan.it/it/attrezzatura-da-golf/set-di-ferri/callaway-steelhead-xr-irons-detail.html
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: GJC Web Design on October 07, 2016, 22:31:22 PM
have u tested on Protostar template?

More changes may be needed .. I had to replace the JS at the bottom of the template on mine
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 08, 2016, 12:40:00 PM
I tested with Beez3 template and the problem is always the same, so I don't think it's a template issue. I can make the first choice but when I make a secon it stops working... other suggestions?
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 08, 2016, 13:09:37 PM
I found the cause of the problem, now I have to find a solution... the problem is the JCH Optimizer Plugin, if I disable the "combine CSS and Javascript"  function, the Multivariant works correctly.
I can exclude single javascripts to be combined but I don't reach the goal, any suggestion? thank you.
Giuseppe
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: GJC Web Design on October 08, 2016, 19:42:11 PM
I can believe.. remember on an ajax reload the js needs to be loaded back as calls in the content so the reattach to objects etc,, head calls are ignored

It will be a case of experimenting to find which scripts to exclude  - maybe it just won't work.. how much improvement does JCH give?
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Studio 42 on October 08, 2016, 23:46:11 PM
JCH Optimizer Plugin is the ultimate tool for most case, but have problem to work because VM3 load the script dynamical in the content,so any script working with VM in the header can be broken after dyn update, so to get the best from your site, remove all VM scripts from jch optimiser or add all script and declaration in your template manually.
Another solution if you have some knowledge in javascript is to call yourself dynupdates trigger >updateVirtueMartProductDetail for missing script, if this are preloaded with JCH.
See components\com_virtuemart\assets\js\dynupdate.js for more details.
Title: Re: Multiple Variants Custom Field Stop Working After Update To 3.0.18
Post by: Geppux on October 10, 2016, 14:58:40 PM
Thank you for your answers but I think that the possible solutions are beyond my ability. I opened a ticket with jch support to see if they can solve my problem.
Giuseppe