Functions in Virtuemart 2.6 broken.

Popular automatic website translation tool

Functions in Virtuemart 2.6 broken.

Postby ingmardevos » Wed Apr 30, 2014 2:41 am

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
Last edited by ingmardevos on Wed Apr 30, 2014 2:59 am, edited 1 time in total.
ingmardevos
 
Posts: 29
Joined: Tue Dec 06, 2011 5:37 pm

Re: Functions in Virtuemart 2.6 broken.

Postby ingmardevos » Wed Apr 30, 2014 2:58 am

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:
Code: Select all
$jsVars .= "vmSiteurl = '". JURI::root( ) ."' ;\n" ;

with:
Code: Select all
$jsVars .= "vmSiteurl = '/' ;\n" ;


This will most likely fix all JS/AJAX related problems with prices and add to cart.
ingmardevos
 
Posts: 29
Joined: Tue Dec 06, 2011 5:37 pm

Re: Functions in Virtuemart 2.6 broken.

Postby Edvard » Thu May 01, 2014 1:12 pm

Thanks for sharing!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron