Functions in Virtuemart 2.6 broken.
Apr 29, 2014 10:41 pm by ingmardevos
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
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
May 1, 2014 9:12 am by Edvard
Thanks for sharing!
SIMILAR TOPICS
Some URL translation broken | Apr 14, 2017 1:10 pm | Replies: 15 | Post by: avkeele |
Display modal popup upon 'Add to cart' (Virtuemart 3) | Apr 15, 2018 2:21 pm | Replies: 1 | Post by: 4FF |
Recent Move - Broken Flag Icons | Mar 2, 2018 10:02 am | Replies: 1 | Post by: datalink |
Translate is broken after up dating to Oxygen 4.0.2 | Feb 6, 2017 4:36 am | Replies: 0 | Post by: Yana |
broken image links over flags on mobile? | Apr 25, 2016 7:35 am | Replies: 6 | Post by: bcorber |