Wrong language for Paypal

  • Giorgio
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #19019 by Giorgio
Wrong language for Paypal was created by Giorgio
Hi all (first post here), i'm using Events Booking with Paypal payment.

All is well but the problem is that when i'm redirected to Paypal, the language is always english (with US language code), and i need it to be different (italian). I've tried to modify the code in components/com_eventbooking/payments/os_paypal, line 62, from:
Code:
$this->setParam('lc', 'US');

to
Code:
$this->setParam('lc', 'IT');

to no avail, and also tried to directly modify the URL on line 56:
Code:
$this->_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';

with
Code:
$this->_url = 'https://www.sandbox.paypal.com/it/it/cgi-bin/webscr';

...but it keeps redirecting me to the US page... what can i do?

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #19041 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Wrong language for Paypal
Hi

I believe you only need to make the first modification, the second modification is not needed. Could you please try ?

Tuan

Please Log in or Create an account to join the conversation.

  • Giorgio
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #19061 by Giorgio
Replied by Giorgio on topic Re: Wrong language for Paypal
Thanks for the reply.

I checked the file ad it's already modified, only the first part, like this:
Code:
$this->setParam('lc', 'IT');

but i'm still being redirected to www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION= etc...

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21851 by Federico
Replied by Federico on topic Re: Wrong language for Paypal
Hi all

I have same problem, I'm Italian too, not solved editing lc paramether to IT.
Did you find a solution?
Thanks in advance

Federico

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21881 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Wrong language for Paypal
@Federico: Could you please send me the link to the registration page on your site so that I can check it myself ?

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21882 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Wrong language for Paypal
There are two modifications need to be made to the file components/com_eventbooking/payments/os_paypal.php :

1. Find the code
Code:
$this->setParam('lc', 'US');
and change it to
Code:
$this->setParam('lc', 'IT');

2. Find the code
Code:
$this->setParam('country', EventBookingHelper::getCountryCode($row->country));
and change it to
Code:
$this->setParam('country', 'IT');

After that, it should work as expected. Could you please try ?

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21895 by Federico
Replied by Federico on topic Re: Wrong language for Paypal
Thank You very much for your attention.
I'm gonna try just now

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21896 by Federico
Replied by Federico on topic Re: Wrong language for Paypal
:laugh: :laugh:
Ho yeah, that sounds good!!!
Works perfectly!!!

Thank you one more time Tuan

Federico

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #21921 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Wrong language for Paypal
Great. Thanks for confirming !

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago - 11 years 5 months ago #21944 by FrankM
Replied by FrankM on topic Re: Wrong language for Paypal
Please delete

Productiv: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5
Testsys: Joomla 3.5.1 / EB 2.4.3 / PHP 7.0.5

Sorry, english isn't my native language.
Last edit: 11 years 5 months ago by FrankM.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc