Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

<_< 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

Posted

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.

:-)

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 ...

Posted

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

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...