[SOLVED] Changing Paypal language on the payment page - PayPal - PrestaShop

Jump to content

Photo

[SOLVED] Changing Paypal language on the payment page

#1

Posted 08 May 2012 - 02:06 PM

ProsjektX

    PrestaShop Apprentice

  • Members
  • PipPip
  • 25 Active Posts
Currently Paypal is in English on the payment page that opens after order confirmation. I see you can manually change the language in the top right corner of the page, but I would really need this page to be in a fixed language other than English.

How can this be done in Prestashop? I see on the Paypal pages that there is a way to do this but cannot find out in the module how this can be done, changing the locale:

https://cms.paypal.c...i_ECCustomizing

Anyone? What I need though is Norwegian, no_NO.

#2

Posted 08 May 2012 - 02:34 PM

Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 Active Posts
Hi ProsjektX,
You can change the PayPal translations on your site through the Back Office under Tools > Translations > Translation of installed modules.

I hope this helps.

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#3

Posted 09 May 2012 - 10:59 AM

ProsjektX

    PrestaShop Apprentice

  • Members
  • PipPip
  • 25 Active Posts
The problem is the Paypal site itself, that shows up for payment. Anyway, I found one reference in paypalpayment.php
$request .= '&LOCALECODE='.strtoupper(Language::getIsoById($cart->id_lang));
and changed this to
$request .= '&LOCALECODE=no_NO';

and one in paypalexpress.php
$request .= '&LOCALECODE='.strtoupper($this->getCountryCode());

to
$request .= '&LOCALECODE=no_NO';

And now it works. Paypal page in my local language by default. Haven't debugged what LOCALCODE actually gets set to with the existing code though, or if it is a bug/issue.

#4

Posted 09 May 2012 - 02:59 PM

Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 Active Posts
I'm glad you were able to resolve this! In your language class, the function that grabs that information from your cart is getIsoById. I'll go ahead and mark this thread as solved for you. Happy selling!

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#5

Posted 06 September 2012 - 02:40 AM

Gomlers

    PrestaShop Apprentice

  • Members
  • PipPip
  • 161 Active Posts

The problem is the Paypal site itself, that shows up for payment. Anyway, I found one reference in paypalpayment.php

$request .= '&LOCALECODE='.strtoupper(Language::getIsoById($cart->id_lang));
and changed this to
$request .= '&LOCALECODE=no_NO';

and one in paypalexpress.php
$request .= '&LOCALECODE='.strtoupper($this->getCountryCode());

to
$request .= '&LOCALECODE=no_NO';

And now it works. Paypal page in my local language by default. Haven't debugged what LOCALCODE actually gets set to with the existing code though, or if it is a bug/issue.


What file was this?

#6

Posted 26 October 2012 - 10:31 PM

mirix

    PrestaShop Newbie

  • Members
  • Pip
  • 5 Active Posts
Hello,

I am new to PrestaShop. I am running 1.5.2 and I am experiencing the same issue, but apparently the referred php files have changed and this solution does not appear to work any more.

I have a shop in US English and Portugal Portuguese (this is the default language both for the shop and PS internals). However, when I use PayPal express checkout the PayPal site is in Spanish (because the account is located in Spain).

Ideally, I would like to be able to display the PayPal checkout page in the language chosen by the customer for navigating through the shop. If this is not possible, I would be happy enough to be able to have the Paypal checkout page always in English...

Kind regards,

Miro

Edited by mirix, 27 October 2012 - 09:11 AM.


#7

Posted 08 February 2013 - 07:05 AM

kangurrr

    PrestaShop Newbie

  • Members
  • Pip
  • 9 Active Posts

The problem is the Paypal site itself, that shows up for payment. Anyway, I found one reference in paypalpayment.php

$request .= '&LOCALECODE='.strtoupper(Language::getIsoById($cart->id_lang));
and changed this to
$request .= '&LOCALECODE=no_NO';

and one in paypalexpress.php
$request .= '&LOCALECODE='.strtoupper($this->getCountryCode());

to
$request .= '&LOCALECODE=no_NO';

And now it works. Paypal page in my local language by default. Haven't debugged what LOCALCODE actually gets set to with the existing code though, or if it is a bug/issue.



Where can i find these files?

THX

#8

Posted 28 May 2013 - 02:37 AM

jc128

    PrestaShop Newbie

  • Members
  • Pip
  • 3 Active Posts
*

Edited by jc128, 28 May 2013 - 02:53 AM.


#9

Posted 28 August 2013 - 09:46 AM

chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 Active Posts
did anyone find this file location?

#10

Posted 06 September 2013 - 10:11 PM

Arnel

    PrestaShop Apprentice

  • Certified Partners
  • 90 Active Posts

Hi Chanansh,

 

The file appears to be in the module that you load for Paypal.  Check out this link:

http://forge.prestas...browse/PNM-1530

 

Let us know if you still can't find the file!

 

Arnel C.


Arnel C.

Customer Community Team

InMotion Hosting


#11

Posted 03 November 2013 - 07:16 PM

chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 Active Posts

Hi,

Cannot find the files "paypalpayment.php" and "paypalexpress.php" inorder to make paypal open in the right language... 

Do you know where they are?

Paypal version 3.6.1

Presta version 1.5.4.1

 

p.s. they are not at /root/modules/paypal


Edited by chanansh, 03 November 2013 - 07:17 PM.


#12

Posted 04 November 2013 - 10:18 AM

vekia

    PrestaShop Legend

  • Ambassadors
  • 50486 Active Posts

everything depends on what paypal module version you use and your prestashop version


free tutorials, free templates, free addons, responsive prestashop modules MndfRK4.png


#13

Posted 04 November 2013 - 10:27 AM

chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 67 Active Posts

Hello Vika, That is why I explicitly noted what are the versions I use, namely: Paypal version 3.6.1 + Presta version 1.5.4.1

It's pretty annoying that my costumers, mostly Hebrew speaking are lead to an English site.



#14

Posted 15 November 2013 - 09:25 AM

raroch

    PrestaShop Newbie

  • Members
  • Pip
  • 10 Active Posts

Hi,

 

I'm also facing this issue. Users being redirected always to PayPal in English.

 

Anyone was able to resolve this? To set PayPal's checkout window with a different locale?

 

I'm using Prestashop 1.5.4.1 & PayPal module 3.6.1.

 

Would appreciate you help.

 

Thanks! 



#15

Posted 29 November 2013 - 08:55 AM

awmawm

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 Active Posts

Same issue here with PS 1.5.6.0. and PayPal module 3.6.1.

 

Attempted to change default country in paypal/paypal.php and paypal/express_checkout/process.php as suggested in other posts on this forum but nothing works. Local customers are still greeted by PayPal in English which increases the risk of cart abandonment.

 

I wrote to PayPal a number of times but they link back to past suggestions on this forum...



#16

Posted 29 November 2013 - 09:43 AM

awmawm

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 Active Posts

PayPal tells me that they cannot support codes from third parties... All they gave me is the message to add the "LC variable" as follows:

 

============================================
LC Variable:
----------------------------------------------
e.g. <input type="hidden" name="lc" value="xx_XX">
----------------------------------------
allowed:

en_US en_GB fr_XC ja_JP pt_BR tr_TR
da_DK es_XC he_IL nl_NL ru_RU xp_EA
de_DE fr_CA id_ID no_NO sv_SE zh_CN
en_AU fr_FR it_IT pl_PL th_TH zh_HK
=============================================

Countries and Regions Supported by PayPal
https://developer.pa.../country_codes/

 

So, my question is, in WHICH file and on WHAT line should we add above code? 

Also, who within Prestashop is in charge for the PayPal Module 3.6.1.? Since PayPal does not support third party code, that person may be the only one who could shed some light on this very problematic situation. 



#17

Posted 03 June 2014 - 09:02 AM

elbatlles

    PrestaShop Newbie

  • Members
  • Pip
  • 3 Active Posts

i try change paypal v 3.6.4.

I changed different things
 

 function  loadLangDefault in paypal.php

 

 $paypal_country_default = 17;
   $this->default_country =17 ;
   $this->iso_code = $this->getCountryDependency("GB"));
 
don't work :/
 
2 try
 
i put a $fields['LOCALECODE'] = 'GB'; in process.php 
 
dont work :/
 
Why?


#18

Posted 05 June 2014 - 03:18 PM

happyhoundweb

    PrestaShop Newbie

  • Members
  • Pip
  • 18 Active Posts

I too am using PayPal v3.6.4 and on Presta 1.6.0.5 and have a similar problem.

 

I am based in the UK, and sell to UK citizens abroad, so the shipping address is nearly always non-English but the client is English speaking. As such I need the PayPal page to be in English, but it adopts the language of the shipping Country.

 

I've tried all the above and more but still no success. Anyone got anymore ideas?

 

Thanks,
Dan



#19

Posted 03 September 2014 - 06:43 PM

EnsoSzL

    PrestaShop Newbie

  • Members
  • Pip
  • 12 Active Posts

Hi all!

I would like to ask some help! :)

 

I am using the latest PrestaShop and PayPal module.. What should I do to get:

 

- Hungarian express and normal checkout paypal image? I think it doesn't even officially exist.. :))

URL of gif currently: https://www.paypal.c...essCheckout.gif

Of course hu_HU doesn't work.. :)
 

- Get instantly hungarian checkout PayPal page? I cant even change from the default 4 language on the PayPal site:
http://ctrlv.in/420045

Thank you in advance!

Sincerely,

eSzeL


Edited by EnsoSzL, 03 September 2014 - 06:44 PM.


#20

Posted 03 September 2014 - 07:14 PM

EnsoSzL

    PrestaShop Newbie

  • Members
  • Pip
  • 12 Active Posts

Hi all!

I would like to ask some help! :)

 

I am using the latest PrestaShop and PayPal module.. What should I do to get:

 

- Hungarian express and normal checkout paypal image? I think it doesn't even officially exist.. :))

URL of gif currently: https://www.paypal.c...essCheckout.gif

Of course hu_HU doesn't work.. :)
 

- Get instantly hungarian checkout PayPal page? I cant even change from the default 4 language on the PayPal site:
http://ctrlv.in/420045

Thank you in advance!

Sincerely,

eSzeL

 

Found in PayPal documentation:
 

"Customizing the Express Checkout User Interface

You can customize the appearance of the PayPal Express Checkout pages. Some changes alter the checkout flow.

Express Checkout includes options for presenting the checkout pages that appear when the buyer logs into PayPal during checkout. Some of them make the PayPal pages look like your own pages, giving the customer a consistent visual presentation:

  • Logo to display
  • Gradient fill color of the border around the cart review area
  • Language in which PayPal content is displayed
  • Your customer service number

Note All of the above customizations can be set in the profile settings of your paypal account. You set them in an Expresss Checkout API operation only when you want to override the default provided by your profile."


Damn.. no hungarian translation of PayPal express merchang checkout..

 

https://developer.pa..._Operation_NVP/


https://www.paypal.c...ile-page-styles

 


Edited by EnsoSzL, 03 September 2014 - 08:15 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more