Posted: February 9, 2018 at 6:48 am
Hello, we’re using Paypal express, and when I get to the Paypal guest checkout, the default country is set to US. I have to click to select UK, which is an extra click I’d like our clients to not have to do. Is there somewhere else I need to change something to switch Paypal into UK mode? Dee |
|
Hi Dee, I checked into this and I could not find a clear answer from PayPal about this. A number of possible solutions were outlined here: If the solution is to the send PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE along with the request, then you can add the following code to do that:
You can add the above to a functions plugin then activate the plugin if one isn’t activated already. |
|
Hi Josh I put this into my functions.php file (that’s the same thing right?) and sadly it didn’t work. I tried purging the cache too and tried again, still defaulting to US of A. Is there something else I can try or test to see where it might be going wrong? Many thanks. Dee |
|
Hi Dee, The theme’s functions.php file isn’t the same thing because it loads too late. So you could try the code within the plugin to make sure it loads in time, then check the logs in Event Espresso > Payment Methods > Logs where you’ll actually see the If setting |
|
Hi Josh I tried that as a plugin, and can confirm that the payment log showed that the country code was being sent to Paypal. Here it is: I looked at the log more closely and also saw this was being sent to paypal: Do you think it is this which is setting the local experience for the user to be United states? I’ve confirmed that all the general settings -> countries are set to GB. Please could you tell me where this LOCALECODE US is coming from? Many thanks. Dee |
|
LOCALECODE US comes from what’s set in WP > Settings > General > Site Language. If that option is currently set to English (United States) you can change it to be English (UK). |
|
Hi Josh That fixed the problem beautifully! I was on English (US) and now I’ve switched to English (UK). Thank you very much for your help. Dee |
|
The support post ‘How to change default country (US) at paypal guest checkout’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.