virtuemart add to cart dont work in gtranslate enterprise

Popular automatic website translation tool

add to cart dont work with translated pages

Postby nohayestilo » Wed Sep 04, 2013 2:57 pm

Hi, my site is www.thecrazyfifties.es, works with joomla & virtuemart.
I'm unable to add products to my cart in any language other than Spanish.
fr.thecrazyfifties.es, en.thecrazyfifties.es and everyone else, dont add products to my cart.
what should i do?
Thanks.
nohayestilo
 
Posts: 10
Joined: Wed Jul 10, 2013 1:38 pm

Re: add to cart dont work with translated pages

Postby nohayestilo » Thu Sep 05, 2013 12:20 pm

Hello,
Any idea about this?
nohayestilo
 
Posts: 10
Joined: Wed Jul 10, 2013 1:38 pm

virtuemart add to cart dont work in gtranslate enterprise

Postby tope » Fri Sep 06, 2013 9:39 pm

Hello, my site is www.thecrazyfifties.es , works with joomla & virtuemart &gtranslate enterprise.
I'm unable to add products to my virtuemart cart in any language other than Spanish. Spanish is the default language.
fr.thecrazyfifties.es, en.thecrazyfifties.es and everyone else, dont add products to my cart.
Can you help me?
Thanks.
tope
 
Posts: 7
Joined: Wed Jul 10, 2013 1:45 pm

Re: virtuemart add to cart dont work in gtranslate enterpris

Postby Yana » Mon Sep 09, 2013 3:09 pm

Hi,

You will need to change vmSiteurl javascript variable and set vmSiteurl = '/' ; instead of vmSiteurl = 'http://www.thecrazyfifties.es/' ;
Also if the response is JSON, then you need to use Content-Type: application/json header instead of text/html.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4140
Joined: Thu Jan 12, 2012 6:21 pm

Re: virtuemart add to cart dont work in gtranslate enterpris

Postby tope » Mon Sep 09, 2013 10:10 pm

Can you tell me where I should change the variable vmSiteurl? can't find it at any place.
Thank you very much
tope
 
Posts: 7
Joined: Wed Jul 10, 2013 1:45 pm

Re: virtuemart add to cart dont work in gtranslate enterpris

Postby Yana » Tue Sep 10, 2013 10:12 am

Hi,

You should be able to find it in the source code of virtuemart plugin.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4140
Joined: Thu Jan 12, 2012 6:21 pm

Re: virtuemart add to cart dont work in gtranslate enterpris

Postby tope » Tue Sep 10, 2013 10:00 pm

Hello,
I've managed to change the variable vmSiteurl,
Now add the product to cart but no popup appears informing that was added to the cart and the options to continue shopping or view cart.
tope
 
Posts: 7
Joined: Wed Jul 10, 2013 1:45 pm

Re: virtuemart add to cart dont work in gtranslate enterpris

Postby Edvard » Wed Sep 11, 2013 2:35 pm

Good to hear that. When you add to cart it sends a request to http://www.thecrazyfifties.es/index.php ... mat=json... with the item details you are putting into cart. After that if it was done successfully it sends a response in JSON format. However the Content-Type header is set to a wrong value text/html. You will need to change it to be application/json. To do that you will need to find the script which responds with the JSON format and add header("Content-Type: application/json"); before the output.

Thank you!

P.S. If you do it successfully, please share your experience and details about what you have changed.
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: 4186
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