klieder Posted August 30, 2006 Posted August 30, 2006 <_< Hello, I have a shop with Dutch and English language. When I checkout in dutch, paypal gives me a dutch payment page. However, my American customers are also getting the dutch payment page from paypal. Does anyone know how paypal gets the language information? Thanks, Ron Quote
♥Monika in Germany Posted August 30, 2006 Posted August 30, 2006 what paypal module are you using? there is a parameter that determines the language and that can be added with a switch statement I added this to the process function of my paypal_ipn.php file: if ($language == 'english') { $my_lang = 'us'; } else { $my_lang = 'de'; } further down, I add this value as a parameter: $parameters['lc'] = $my_lang; I added it right above the notify_url parameter. This is a nice solution for single language countries, sadly paypal has not considered Belgium, Italy or Switzerland and has a set language for those ... so submitting French will not help for Switzerland as German is set the be its language. Just a FYI ... and BTW paypla knows and has known for a long time, still no updated version. Quote :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
klieder Posted August 30, 2006 Author Posted August 30, 2006 I was using the "regular" module, until I opened a new account, and then stuff happened :-) Today I installed the IPN v 1.3 module, still the dutch page came up. I'll try your lines and report back, thanks, Ron Quote
klieder Posted August 30, 2006 Author Posted August 30, 2006 Hi Monika, Well, it works probably as you meant it to. I know because I got a German Paypal page as I forgot to change it to nl . But now I had my website on English language and still got the german page. Is the 'english' in your statement a browser detect? I am getting confused with the language thing, as I also have another thing with thelanguage and currency, in Dutch I get the USD (default), but I set the Euro as a default in dutch.php and in My Store ticked the Switch To Default Language Currency to true. So, am I missing something? Or just not very smart :-" Thanx, Ron btw...as a quick fix i set the 'de' parameter also to 'us' , so at least all my customers can read PayPalying! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.