- Posts: 2
- Thank you received: 0
Redirecting Joomdonation to alternative language
- jomajo
- Topic Author
- Offline
- New Member
-
Less
More
11 years 1 month ago #41774
by jomajo
Redirecting Joomdonation to alternative language was created by jomajo
Hey Tuan,
We're having problems with the Joomdonation paypal sending to the wrong language,
in the emails we corresponded you told me to ask paypal.
After asking around with paypal and checking our other components that are using paypal and sending ok to the correct language paypal
we found that on breezing forms for example we have a hidden input like this - and this is what indicates the language the page should open on in paypal,
i have included to whole form also below,
please can you tell us where to integrate this?
best,
Joe
This is a sample of the code we're using in the custom breezingforms form we're using,
We're having problems with the Joomdonation paypal sending to the wrong language,
in the emails we corresponded you told me to ask paypal.
After asking around with paypal and checking our other components that are using paypal and sending ok to the correct language paypal
we found that on breezing forms for example we have a hidden input like this - and this is what indicates the language the page should open on in paypal,
Code:
<input type="hidden" name="lc" value="il" />
please can you tell us where to integrate this?
best,
Joe
This is a sample of the code we're using in the custom breezingforms form we're using,
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="mypaypalform">
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<input type="hidden" name="charset" value="utf-8" />
<input type="hidden" name="business" value="donate@rabenu.com" />
<input type="hidden" name="item_name" value="Donation" />
<input type="hidden" name="currency_code" value="ILS" />
<input type="hidden" name="lc" value="il" />
<input type="hidden" name="item_number" value="1" />
<input type="hidden" name="no_note" value="1"> <!-- required field -->
<input type="hidden" name="a3" value="50.00"> <!-- price of subscription -->
<input type="hidden" name="p3" value="'.ff_getSubmit('duration').'"> <!-- billing cycle length -->
<input type="hidden" name="t3" value="M">
<input type="hidden" name="return" value="http://website.com/thank-you-page.html" />
</form>
';
exit;
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 1 month ago #41814
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Redirecting Joomdonation to alternative language
Hi Joe
Please open the file components/com_jdonation/payments/os_paypal.php, find the code below :
Change it to:
After that, check it again and it should work as expected.
Tuan
Please open the file components/com_jdonation/payments/os_paypal.php, find the code below :
Code:
$this->setParam('lc', 'US');
Change it to:
Code:
$this->setParam('lc', 'il');
After that, check it again and it should work as expected.
Tuan
The following user(s) said Thank You: jomajo
Please Log in or Create an account to join the conversation.
- jomajo
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
11 years 1 month ago #41946
by jomajo
Replied by jomajo on topic Re: Redirecting Joomdonation to alternative language
Thanks! will test this out and see if it's working!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 1 month ago #42031
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Redirecting Joomdonation to alternative language
OK. Please let me know the result once you tested it.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Dũng Nguyễn Việt
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.