Zen Cart Logo
Forums / PayPal Express Checkout support / Getting PayPal to default to English -

Getting PayPal to default to English -

Locked

Views: 11,098

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
14 Jan 2008, 4:29 PM
#1
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Getting PayPal to default to English -

I am so close - but this one is killing me. I have an Italian client, they have opened and account with PayPal.it - unfortunately this means that when a user comes to PayPal from their store, PayPal is presented in Italian (whether logging in to use PayPal or when trying to pay by credit card). We are selling to the US, so we really need the page to be in English. Here is the site: http://aurumitaliangold.com/

I have corresponded with PayPal - and I have a lucid answer - but I can not implement it. I am running Zen Cart 1.3.7.1, Database Patch Level: 1.3.7.1

Here is what PayPal is telling me - can anyone suggest how I can implement it (we are hosted by SiteGround and they are no help).

"Thank you for contacting PayPal Merchant Technical Support.

Let me begin by apologising for any confusion caused. I accept that issues like yours can be very confusing and I hope that by clarifying the situation and offering you the right advice I can help you resolve it.

Firstly, to clarify, you are using Express Checkout with Zen cart is that correct?

(me - yes)

If so, rather than using "lc" you will be using the variable "LOCALECODE"

As per Chapter 3 page 28 of our developer's guide:
https://www.paypal.com/en_US/pdf/PP_NVPAPI_DeveloperGuide.pdf

By adding:
&LOCALECODE=US
directly into the SetExpressCheckout request being passed to PayPal, the language of the PayPal checkout will change.

Having said that, I appreciate that by using Zen Cart to implement your checkout, you may not have direct access to the code in order to make the required changes. I would therefore encourage you to contact Zen Cart support directly and request that they add this information into the SetExpressCheckout request that is generated by your cart for you. PayPal does not have access to the code generated by Zen cart to make this change.

Without passing this information, the PayPal login/ billing information page will be set to that of the merchant's PayPal account. This means that the Rosetta country menu (the drop-down menu at the top of the PayPal checkout) will only be displayed if it detects that your customer's browser does not contain an Italian cookie. By this I mean, this menu will only be displayed if the person testing has never visited an Italian site previously.

To conclude, if your Zen Cart administration panel for:
modules -> payments -> Express Checkout
does not provide you with the option to select language/ display country,

(me - it doesn't!)

you will need to contact Zen Cart directly and request that they pass "LOCALECODE" for you."
Of course - my Zen Cart control panel doesn't offer the above. Is there anyway to get this to work, or do I have to go back to my client and tell them I am an idiot???

I can get to the DB though with phpMyAdmin if that helps anyone...

Thanks -

14 Jan 2008, 5:21 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Getting PayPal to default to English -

Zen Cart already passes LOCALECODE based on the customer's currently-selected language.
What is your "short code" for English in your Admin->Localization->Languages area?

14 Jan 2008, 5:32 PM
#3
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Getting PayPal to default to English -

Hm - it is English:

English (default) en

and it is on...

14 Jan 2008, 5:46 PM
#4
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Getting PayPal to default to English -

I also tested "US" and that didn't work either...

14 Jan 2008, 9:21 PM
#6
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Getting PayPal to default to English -

Okay - just put something in the cart, clicked on Check Out with PayPal, and was presented with the page in Italian - that is as far as I went:

Jan-14-2008 03:17:37
ec_step1 - 1
Checking to see if we are in markflow
cart contents: physical

NOTE: $this->showPaymentPage = 0
Customer ID: 0
Session Data: Array
(
[customers_host_address] => host86-68-dynamic.57-82-r.retail.telecomitalia.it
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[5:1087adbbda4a13e1b71c79b19ec32320] => Array
(
[qty] => 1
[attributes] => Array
(
[2] => 7
)

                    )

            )

        [total] => 1085
        [weight] => 0
        [cartID] => 09723
        [content_type] => physical
        [free_shipping_item] => 0
        [free_shipping_weight] => 0
        [free_shipping_price] => 0
        [observers] => Array
            (
            )

    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => index
                        [mode] => NONSSL
                        [get] => Array
                            (
                                [type] => ec
                            )

                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
            )

        [observers] => Array
            (
            )

    )

[check_valid] => true
[language] => english
[languages_id] => 1
[languages_code] => en
[currency] => EUR
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 82.57.68.86
[new_products_id_in_cart] => 5:1087adbbda4a13e1b71c79b19ec32320
[valid_to_checkout] => 1
[cart_errors] => 
[payment] => paypalwpp

)

=================================

Jan-14-2008 03:17:37
getOverrideAddress - 4
not logged in and not in markflow mode - nothing to override

Jan-14-2008 03:17:37
ec_step1 - 2 -submit
Array
(
[RETURNURL] => http://aurumitaliangold.com/ipn_main_handler.php?type=ec
[CANCELURL] => http://aurumitaliangold.com/index.php?main_page=login&ec_cancel=1
[LOCALECODE] => IT
[CURRENCY] => EUR
[PAYMENTACTION] => Sale
[SOLUTIONTYPE] => SOLE
)

=================================

Let me know if you need more - if you want a whole transaction I will need to set up some test products, etc.

Thank you!

14 Jan 2008, 9:24 PM
#7
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Getting PayPal to default to English -

Hmm - so - I see this:

"[LOCALECODE] => IT"

So there is something not working... I am trying this from Italy (but in English of course), but I have had people test it from the US with the same results...

14 Jan 2008, 9:43 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Getting PayPal to default to English -

afinta:

Hmm - so - I see this:

"[LOCALECODE] => IT"This comes from your store's country setting in Admin->Configuration->My Store.

It seems half the world wants it to be based on where their store is located, and the other half wants it based on the customer's language choice.

If you want to change how it works, you can feel free to modify the "getLanguageCode()" function in your /includes/modules/payment/paypalwpp.php file.

14 Jan 2008, 9:48 PM
#9
afinta avatar

afinta

New Zenner

Join Date:
Sep 2007
Posts:
21
Plugin Contributions:
0

Re: Getting PayPal to default to English -

Well I just changed it to US and now it works - wow - that was too much time spent on such a simple fix! Thank you -

14 Jan 2008, 10:02 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Getting PayPal to default to English -

DrByte:

It seems half the world wants it to be based on where their store is located, and the other half wants it based on the customer's language choice.

I find that an interesting statement. Who decides if Language is based on Store location or Customer location?

Would it have anything to do with this setting as well as Country setting?

Admin->Configuration->My Store

Language Selector
Should the default language be based on the Store preferences, or the customer's browser settings?

Default: Store's default settings

[x]Default
[ ]Browser

afinta, for the sake of curiosity, could you make the above change, from Default to Browser, and see what happens with PayPal?