Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › How to send buyers to english URL version of paypal checkout page?
Tagged: English, estore, Language, PayPal, paypal settings, subscriptions
- This topic has 23 replies, 9 voices, and was last updated 11 years, 9 months ago by admin.
-
AuthorPosts
-
April 26, 2010 at 1:25 pm #1136paultonyMember
Hi, first of all, sorry for all these questions I am posting everywhere, it is just that something on a different subject keeps on popping up.
This is my problem:
I am living in Spain, and the paypal account that I signed up with was signed up here in Spain. so now, when ever I use any software that allows me to accept paypal, it automatically sends all prospects to a Spanish URL checkout page of payal. This is bad for me because most of my prospects are from the USA (Even though my hosting account is from the USA), so I would prefer the page to be in English.
Is there anyway that one of the php files can be modified to push buyers to the English version URL of paypal’s checkout page? i am able to do it if I manually make a paypal buy now button, so hoping it is something that is easy to implement with your shopping cart.
Thanks,
Paul
April 26, 2010 at 10:58 pm #20111IvyMemberUpdate: We have added an advanced option in the plugin so you can force the language of the PayPal payment page. Do the following to set the language to English by force:
Open the “eStore_advanced_configs.php” file and search for the following line of code:
define('WP_ESTORE_FORCE_LANGUAGE_OF_PAYPAL_PAGE', '0');
Once you find it, change it to the following:
define('WP_ESTORE_FORCE_LANGUAGE_OF_PAYPAL_PAGE', 'US');
That should force the language of the PayPal page to English
https://support.tipsandtricks-hq.com/forums/topic/paypal-transaction-language-code
April 27, 2010 at 9:32 am #20112paultonyMemberHi Ivy, sure, here is the url:
[http://www.bestcontentprovider.com/test-page-1/]
April 27, 2010 at 10:59 am #20113paultonyMemberOk, i have been doing a little diggin around on the net, and this is what i have found so far:
looks like there are variables that can be used to dictate the language of paypal’s checkout pages. From what I understand, they look like this:
<input type=”hidden” name=”lc” value=”Not sure what should be here”>
From what I understand, lc is the actual country and value is the language, but I could be wrong. therefore, if I am looking for English as the language, could the following work?:
<input type=”hidden” name=”US” value=”EN”>
or
<input type=”hidden” name=”LC” value=”EN”>
or
<input type=”hidden” name=”US” value=”US”>
This is where I got my info from:
https://www.x.com/message/92146;jsessionid=A572F7685C4EA43AF5C437B16A95D0C7.node0?tstart=3
My apologies if these links should not be put into the post, it is just there for you to make more sense out it.
Do you think it is possible to teak your plugin with these variables?
April 27, 2010 at 11:31 pm #20114amin007ParticipantYou can use one of the following or both together:
<input type=”hidden” name=”lc” value=”US”>
or
<input type=”hidden” name=”country” value=”US”>
lc specifies the language code, country specified the country.
This should be really easy to add in eStore. Are you mainly using the “Add to Cart” button functionality or all of them (“Buy Now”, “Subscribe”, “Add to Cart”)?
April 28, 2010 at 12:21 am #20115GeoSuPhatParticipantYes I am having the same problem.. Site is in English but I am located in Germany and it takes you to a german paypal page until you login…
Since the site is in English I would prefer the PP landing page in english as well… it scares off some non german customers.
We are using the cart buttons where do we need to add the code?
April 28, 2010 at 1:10 am #20116amin007ParticipantJust so you know…
“The language is determined by a PayPal cookie in the subscriber’s browser. If there is no PayPal cookie, the default language is U.S. English.”
The language you see in your computer/browser doesn’t determine what your customers will see. However, you can specify the language by adding a special field so everyone sees the same language. See below for that tweak:
Open the “eStore_payment_submission.php” file and search for the following:
$myPaypal->addField('cmd', '_cart');
Once you find it add the following just above that line:
$myPaypal->addField('lc', 'US'); //This will show the language in English
Save and upload the file and it should show the language you specified here (in this case English).
April 28, 2010 at 1:40 am #20117GeoSuPhatParticipantI know that is what is suppose to happen but it doesnt seem to work that way, I had a friend of mine from Wisconsin test my cart and she said it came up in German. Also, I just tried the test item on the paultony link above and it came up in Spanish so I dont know. I am not blaming you it is a paypal thing, but I had to do the same thing when I was using buttons directly from PP button maker prior to buying your eStore. I really like your cart also, it does all the things I need. This does only effect people in situations like mine or international sales from other non english countrys. Lol, I should have stayed in Michigan.
Anyway thanks for the fix I am going to try it out right now, I just didnt know where to add it.
April 28, 2010 at 1:59 am #20118GeoSuPhatParticipantThanks, I have been banging my head against the wall all week trying to get this.
It works but not with EN, (I know it doesnt make sense) you have to use US for English as the value or whatever language code you need.
$myPaypal->addField(‘lc’, ‘US’); //This will show the language in English
Thank for the fix I really appreciate your help.
Geo
April 28, 2010 at 7:59 am #20119paultonyMemberHi amin 007, Thanks for the fix. I will be using the add to cart function mostly. Will try the tweak out now and see what results I get.
April 28, 2010 at 8:25 am #20120paultonyMemberOk, I tried it out and it works perfectly. Thanks for all your help amin007!
August 17, 2010 at 9:17 am #20121JonathanFokkerMemberHe Amin,
I tried to add the following code in eStore_payment_submission.php:
$myPaypal->addField(‘lc’, ‘US’); //This will show the language in English
But it doesnt work with a Recurring Payment and also not with a Buy Now option. Is there anything I did wrong? Do I need to add more code?
I did clear cookies, but still receive the wrong language (in Dutch). I tested it with someone else also.
Looking forward to your reply.
Shalom,
Jonathan
August 18, 2010 at 2:35 am #20122amin007ParticipantThe tweak offered in this thread was for the shopping cart checkout (for “Add to Cart” buttons).
For buy now or subscription buttons you need to tweak the code in a different place.
Open the “eStore_misc_functions.php” file and look for the following line:
$output .= '<input type="hidden" name="cbt" value="'.$returnButtonText.'" />';
Once you find it add the following line just below it:
$output .= '<input type="hidden" name="lc" value="US" />';
There will be two occurrences (one of buy now and one for subscription). That should do the trick.
August 30, 2010 at 1:37 pm #20123JonathanFokkerMemberHe amin,
Thank you soo much! That did the trick!
Shalom,
Jonathan
April 7, 2011 at 5:30 pm #20124malcolmkSpectatorCheers!! Had the same issue and this thread helped immensely!!
-
AuthorPosts
- You must be logged in to reply to this topic.