homepage Welcome to WebmasterWorld Guest from 54.146.190.193
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Help reg Ajax call
danepak



 
Msg#: 4375786 posted 7:16 am on Oct 18, 2011 (gmt 0)

Hi,
I’ve done an e-commerce website in English and French.
I used the free Transposh plugin for the translation, which does a fantastic job.
For the e-commerce part, I've used WP E-Commerce.
I can switch between English and French by choosing the language in a language widget.
Only smaller problem:
If I’m in the French version and I buy something, the cart is displayed in English.
I can get around this problem by choosing French (again) as the language (in the language widget), but ideally this shouldn’t be necessary.
I’ve been told that the following has to be done:
‘…this happens because an ajax call happens, which does not take the language into account. you should probably change the params given to the button to include the ?lang=xx param’
So my question is…how do I do this? I know nothing about PHP (yet...).
It's on my 'to-do-list', to learn a bit more about it.
I'm still very new to HTML and CSS, so I take one step at a time.

Would it by any chance be something like this that would need to be added to the CSS?
.wpsc_buy_button_container
?lang=fr

If so, how exactly?

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved