Forum Archive - Functions in Virtuemart 2.6 broken.

Functions in Virtuemart 2.6 broken.
Apr 29, 2014 10:41 pm by ingmardevos
Hi, We are having some issues after updating to Virtuemart 2.6. Add to cart and other dynamic functions like product options with price recalcuation don't work anymore. One thing I noticed is that in the Virtuemart 2.6 config there is no VmSiteURL anymore. This I had to change in previous versions to make this work with Gtranslate. How to make this work???? Also it looks like the homepage layout get's broken. Does Gtranslate do anything with changing javascript? Or, do you guys cache a version of the site on your server? In this case that might be the problem. Thanks, Ingmar
Re: Functions in Virtuemart 2.6 broken.
Apr 29, 2014 10:58 pm by ingmardevos
Hello there, for anyone having the same problem in VM 2.6; After a bit more searching in files I found out that the VM developers team moved the VMSiteURL variable to administrator/components/com_virtuemart/helpers/vmjsapi.php. Simply search for "VmSiteURL" and replace this line: $jsVars .= "vmSiteurl = '". JURI::root( ) ."' ;\n" ; with: $jsVars .= "vmSiteurl = '/' ;\n" ; This will most likely fix all JS/AJAX related problems with prices and add to cart.
Re: Functions in Virtuemart 2.6 broken.
May 1, 2014 9:12 am by Edvard
Thanks for sharing!

SIMILAR TOPICS

Some URL translation brokenApr 14, 2017 1:10 pmReplies: 15Post by: avkeele
Display modal popup upon 'Add to cart' (Virtuemart 3)Apr 15, 2018 2:21 pmReplies: 1Post by: 4FF
Recent Move - Broken Flag IconsMar 2, 2018 10:02 amReplies: 1Post by: datalink
Translate is broken after up dating to Oxygen 4.0.2Feb 6, 2017 4:36 amReplies: 0Post by: Yana
broken image links over flags on mobile?Apr 25, 2016 7:35 amReplies: 6Post by: bcorber

Try GTranslate with a free 15 day trial