- Posts: 2
- Thank you received: 0
Wrong language for Paypal
- Giorgio
- Topic Author
- Offline
- New Member
-
Less
More
12 years 8 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:
to
to no avail, and also tried to directly modify the URL on line 56:
with
...but it keeps redirecting me to the US page... what can i do?
Thanks in advance!
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 8 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
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
-
Less
More
- Posts: 2
- Thank you received: 0
12 years 8 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:
but i'm still being redirected to www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION= etc...
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.
- Federico
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 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
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 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
and change it to
2. Find the code
and change it to
After that, it should work as expected. Could you please try ?
Tuan
1. Find the code
Code:
$this->setParam('lc', 'US');
Code:
$this->setParam('lc', 'IT');
2. Find the code
Code:
$this->setParam('country', EventBookingHelper::getCountryCode($row->country));
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.
- Federico
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 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
I'm gonna try just now
Please Log in or Create an account to join the conversation.
- Federico
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 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
Tuan
Please Log in or Create an account to join the conversation.
- FrankM
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 16
12 years 5 months ago - 12 years 5 months ago #21944
by FrankM
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.
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: 12 years 5 months ago by FrankM.
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.