Vote for v1.5 Fixes

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

[SOLVED] Changing Paypal language on the payment page


  • Please log in to reply
15 replies to this topic
ProsjektX

    PrestaShop Apprentice

  • Members
  • PipPip
  • 25 posts

Posted 08 May 2012 - 02:06 PM

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.

Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts

Posted 08 May 2012 - 02:34 PM

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

ProsjektX

    PrestaShop Apprentice

  • Members
  • PipPip
  • 25 posts

Posted 09 May 2012 - 10:59 AM

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.

Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts

Posted 09 May 2012 - 02:59 PM

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

Gomlers

    PrestaShop Apprentice

  • Members
  • PipPip
  • 109 posts

Posted 06 September 2012 - 02:40 AM

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?

mirix

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts

Posted 26 October 2012 - 10:31 PM

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.


kangurrr

    PrestaShop Newbie

  • Members
  • Pip
  • 9 posts

Posted 08 February 2013 - 07:05 AM

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

jc128

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts

Posted 28 May 2013 - 02:37 AM

*

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


chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 56 posts

Posted 28 August 2013 - 09:46 AM

did anyone find this file location?

arncus

    PrestaShop Apprentice

  • Certified Partners
  • 78 posts

Posted 06 September 2013 - 10:11 PM

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.



chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 56 posts

Posted 03 November 2013 - 07:16 PM

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.


vekia

    PrestaShop Legend

  • US Moderators
  • 36697 posts

Posted 04 November 2013 - 10:18 AM

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


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


chanansh

    PrestaShop Apprentice

  • Members
  • PipPip
  • 56 posts

Posted 04 November 2013 - 10:27 AM

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.



raroch

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts

Posted 15 November 2013 - 09:25 AM

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! 



awmawm

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts

Posted 29 November 2013 - 08:55 AM

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...



awmawm

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts

Posted 29 November 2013 - 09:43 AM

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. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users