Post by xoomit » Mon Dec 15, 2014 5:49 pm

Hej opencart-Team,

I have a multilingual shop with PayPal as my main payment method. However, regardless of the language I am using in the shop the PayPal payment site is in German. I suspected this is because I have a German IP and that PayPal auto-detects the language. However, when I tried with a UK IP I still got the PayPal site in German. Do you know what the language of the PayPal site is based on? Would I have to add a language parameter to the PayPal URL?

Thanks & best,
Torge

New member

Posts

Joined
Tue Jun 19, 2012 6:09 am

Post by OSWorX » Mon Dec 15, 2014 6:05 pm

Hello,

guess you are talking about PayPal Standard.
Language is based on which language is used in the shop.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by xoomit » Mon Dec 15, 2014 8:03 pm

Hej OSWorX,

then there seems to be a problem. I'm currently working on www.city-gardener.com and even if I use the shop in English I get the German PayPal form. Do you have any idea why this is or how to solve this? The problem is that on the PayPal site you couldn't even switch the language.

Thanks & best,
Torge

New member

Posts

Joined
Tue Jun 19, 2012 6:09 am

Post by OSWorX » Mon Dec 15, 2014 8:17 pm

You can check the source code at the checkout after selecting PayPal (Standard) - before hitting the 'final' button.
There you should see the form fields - what is there under

Code: Select all

<input type="hidden" name="lc" value="LANG_CODE_HERE" />
PP supports most languages, e.g. en, de, fr, etc.
If you are using English it should be en

Well, one additional issue could be also.
PP is using a lot of cookies (what surprise ..).
Maybe clear them once before the next test.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by xoomit » Mon Dec 15, 2014 8:26 pm

Hej OSWorX,

I double-checked the behaviour of the shop and double-checked in the code --> actually the PP language is not based on the shop language but the customer country (invoice country). This should mostly be Ok I guess. Still, it is a weird behaviour.

Cheers,
Torge

New member

Posts

Joined
Tue Jun 19, 2012 6:09 am

Post by OSWorX » Mon Dec 15, 2014 8:39 pm

Language is set as follows (see controller):

Code: Select all

$this->data['lc'] = $this->session->data['language'];
and the session comes comes from the language module:

Code: Select all

$this->session->data['language'] = $this->request->post['language_code'];
Or you are using some custom extension which sets/overrides the language code ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 3 guests