VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Piszi on September 30, 2014, 04:49:00 AM

Title: Fancybox custom fields preventing price recalculate
Post by: Piszi on September 30, 2014, 04:49:00 AM
Hello,

I tweeked my product details page to have two of my custom fields in a fancybox popup because they contain about 80 options with images. But it makes the js-recalculate useless because fancybox cuts out the html for the popup so the radio buttons are outside the add to cart form until the fancybox is open.
Is there any way to trigger the recalculate from the fancybox or maybe from another function? I have a click function on the radios, could I trigger the recalculate from that function?
Title: Re: Fancybox custom fields preventing price recalculate
Post by: GJC Web Design on September 30, 2014, 12:47:46 PM
check the vmprices.js .. that is where all the js for product and cart is handled
Title: Re: Fancybox custom fields preventing price recalculate
Post by: jenkinhill on September 30, 2014, 13:44:30 PM
This is a case where the new VM3 JavaScript handler could help.  http://docs.virtuemart.net/tutorials/development/196-the-vm-javascript-handler.html
Title: Re: Fancybox custom fields preventing price recalculate
Post by: Piszi on September 30, 2014, 22:05:21 PM
Quote from: jenkinhill on September 30, 2014, 13:44:30 PM
This is a case where the new VM3 JavaScript handler could help.  http://docs.virtuemart.net/tutorials/development/196-the-vm-javascript-handler.html

Is there a way to implement this to vm 2.x site?
Title: Re: Fancybox custom fields preventing price recalculate
Post by: jenkinhill on September 30, 2014, 23:12:15 PM
No more features are being added to 2.6  or major code changes made, except for any necessary bugfixes. 2.9.9 works well on J2.5 if you are worried about a Joomla version upgrade.