ProsjektX Posted May 8, 2012 Share Posted May 8, 2012 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.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing Anyone? What I need though is Norwegian, no_NO. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 8, 2012 Share Posted May 8, 2012 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 Link to comment Share on other sites More sharing options...
ProsjektX Posted May 9, 2012 Author Share Posted May 9, 2012 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. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 9, 2012 Share Posted May 9, 2012 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 Link to comment Share on other sites More sharing options...
Gomlers Posted September 6, 2012 Share Posted September 6, 2012 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? Link to comment Share on other sites More sharing options...
mirix Posted October 26, 2012 Share Posted October 26, 2012 (edited) 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 October 27, 2012 by mirix (see edit history) Link to comment Share on other sites More sharing options...
kangurrr Posted February 8, 2013 Share Posted February 8, 2013 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 Link to comment Share on other sites More sharing options...
jc128 Posted May 28, 2013 Share Posted May 28, 2013 (edited) * Edited May 28, 2013 by jc128 (see edit history) Link to comment Share on other sites More sharing options...
chanansh Posted August 28, 2013 Share Posted August 28, 2013 did anyone find this file location? Link to comment Share on other sites More sharing options...
Arnel Posted September 6, 2013 Share Posted September 6, 2013 Hi Chanansh, The file appears to be in the module that you load for Paypal. Check out this link:http://forge.prestashop.com/browse/PNM-1530 Let us know if you still can't find the file! Arnel C. Link to comment Share on other sites More sharing options...
chanansh Posted November 3, 2013 Share Posted November 3, 2013 (edited) 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 November 3, 2013 by chanansh (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 4, 2013 Share Posted November 4, 2013 everything depends on what paypal module version you use and your prestashop version Link to comment Share on other sites More sharing options...
chanansh Posted November 4, 2013 Share Posted November 4, 2013 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. Link to comment Share on other sites More sharing options...
raroch Posted November 15, 2013 Share Posted November 15, 2013 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! Link to comment Share on other sites More sharing options...
awmawm Posted November 29, 2013 Share Posted November 29, 2013 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... Link to comment Share on other sites More sharing options...
awmawm Posted November 29, 2013 Share Posted November 29, 2013 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_TRda_DK es_XC he_IL nl_NL ru_RU xp_EAde_DE fr_CA id_ID no_NO sv_SE zh_CNen_AU fr_FR it_IT pl_PL th_TH zh_HK=============================================Countries and Regions Supported by PayPalhttps://developer.paypal.com/webapps/developer/docs/classic/api/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. Link to comment Share on other sites More sharing options...
elbatlles Posted June 3, 2014 Share Posted June 3, 2014 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? Link to comment Share on other sites More sharing options...
happyhoundweb Posted June 5, 2014 Share Posted June 5, 2014 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 Link to comment Share on other sites More sharing options...
EnsoSzL Posted September 3, 2014 Share Posted September 3, 2014 (edited) 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.com/en_US/i/btn/btn_xpressCheckout.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/420045Thank you in advance!Sincerely, eSzeL Edited September 3, 2014 by EnsoSzL (see edit history) Link to comment Share on other sites More sharing options...
EnsoSzL Posted September 3, 2014 Share Posted September 3, 2014 (edited) 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.com/en_US/i/btn/btn_xpressCheckout.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.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/ https://www.paypal.com/hu/cgi-bin/webscr?cmd=_profile-page-styles Edited September 3, 2014 by EnsoSzL (see edit history) Link to comment Share on other sites More sharing options...
gilsimjo Posted November 19, 2014 Share Posted November 19, 2014 Hi I have prestashop 1.5.6.2 and I have the same problem, when my users try to pay through paypal, the paypal site doesn't get prestashop language. Is there any way to force paypal to get my prestashop language site? nowadays I have three languages in my prestashop site, spanish, french and english. In the subject this question appears as a solved question, but I don't see the solution anywhere Regards Jordi. Link to comment Share on other sites More sharing options...
afshop Posted December 16, 2014 Share Posted December 16, 2014 Hi I have prestashop 1.5.6.2 and I have the same problem, when my users try to pay through paypal, the paypal site doesn't get prestashop language. Is there any way to force paypal to get my prestashop language site? nowadays I have three languages in my prestashop site, spanish, french and english. In the subject this question appears as a solved question, but I don't see the solution anywhere Regards Jordi. HI, I have the same problem, I ave six languages in my site and I would to see the paypal page in the correct language. Did you fix it? thanks Angela Link to comment Share on other sites More sharing options...
cureczak Posted February 21, 2017 Share Posted February 21, 2017 Hello, Facing the same issue here using Presta 1.6.1.11 with paypal's module v3.11.3. Has anyone managed to get the paypal's page with the same language as chosen on the site?? I will be more than happy to hear that someone did ...and will drop a hint how to achieve that! Cheers,Konrad 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now