Zen Cart Logo
Forums / PayPal Express Checkout support / How to change the PayPal Express Checkout button to spanish?

How to change the PayPal Express Checkout button to spanish?

Locked

Views: 6,558

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
7 May 2010, 8:34 PM
#1
jeromev avatar

jeromev

New Zenner

Join Date:
May 2010
Posts:
9
Plugin Contributions:
0

How to change the PayPal Express Checkout button to spanish?

Hi,
I'm using the PayPal Express Checkout module, and everything is working fine.

Except that my button is in English and my website is in Spanish.
How can I switch this button to the Spanish one?

I have the correct link for the Spanish button but I don't know where I can edit this link in my Zencart PHP files.

8 May 2010, 7:50 AM
#3
jeromev avatar

jeromev

New Zenner

Join Date:
May 2010
Posts:
9
Plugin Contributions:
0

Re: How to change the PayPal Express Checkout button to spanish?

Thanks for your help Dr.Byte :clap:

25 May 2010, 12:30 PM
#4
akarui avatar

akarui

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Re: How to change the PayPal Express Checkout button to spanish?

In the same way I would like to change this button image to a Japanese one.
Where is that file? A search with the tool kit for the English paypal button give includes/languages/english/modules/payment/paypalwpp.php and I have supposed that I had to change the path on ligne 93 "https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif" but changing this line doesn't change the look of the button (change with overide).
May be my search was not good. Any help??
version 1.3.9c

25 May 2010, 12:36 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: How to change the PayPal Express Checkout button to spanish?

If you're changing it for japanese, then you need to edit the file under your japanese folder, not your english folder

25 May 2010, 1:13 PM
#6
akarui avatar

akarui

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Re: How to change the PayPal Express Checkout button to spanish?

Of course DrByte... I know that but your answer doesn't help me. I have made the search with the English button to try to find where is the file, after I can do the change for all the other installed languages.
Could you tell me where is located that button? (the English one will be fine...)

25 May 2010, 3:52 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: How to change the PayPal Express Checkout button to spanish?

Ideally if you were changing it for the english version, you would copy the /includes/languages/english/modules/payment/paypalwpp.php file to your own custom template copy at /includes/languages/english/modules/payment/NameOfYourTemplateFolder/paypalwpp.php and make your edit there.
Similarly for other languages and other custom templates.

26 May 2010, 1:52 AM
#8
akarui avatar

akarui

New Zenner

Join Date:
Mar 2010
Posts:
17
Plugin Contributions:
0

Re: How to change the PayPal Express Checkout button to spanish?

Thank you very much DrByte to confirm that the file paypalwpp.php was the only concerned.
I will be more precise as I have seen somebody else having the same problem on this forum, the button is at line 93 define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG'

I think I have found where was the problem. The classic override doesn't work and this file should be hack directly.

26 May 2010, 9:04 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: How to change the PayPal Express Checkout button to spanish?

akarui:

I think I have found where was the problem. The classic override doesn't work and this file should be hack directly.:eek: you're right. And the ALT text for that button also behaves similarly.
v1.3.9d will contain a fix for both situations when it is released.

4 Dec 2010, 9:07 AM
#10
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,873
Plugin Contributions:
7

Re: How to change the PayPal Express Checkout button to spanish?

In the interests of providing an easy answer to the title of this thread, you need to edit
/languages/spanish/modules/payment/paypalwpp.php
and replace

// EC buttons -- Do not change these values
///// Only valid choices from this page should be used: https://ppmts.custhelp.com/cgi-bin/ppdts.cfg/php/enduser/std_adp.php?p_faqid=632
  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', 'https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif');
  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_SM_IMG', 'https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckoutsm.gif');
  //define('MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG', 'https://www.paypalobjects.com/en_US/i/logo/PayPal_mark_37x23.gif');
  define('MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG', 'https://www.paypalobjects.com/en_US/i/logo/PayPal_mark_50x34.gif');

with

// EC botones
///// Debería utilizar solamente las imágenes y enlaces oficiales de esta página: http://ppmts-es.custhelp.com/cgi-bin/ppmts_es.cfg/php/enduser/std_adp.php?p_faqid=634
  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', 'https://www.paypalobjects.com/es_ES/i/btn/btn_xpressCheckout.gif');//página registrar/login
  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_SM_IMG', 'https://www.paypalobjects.com/es_ES/i/btn/btn_xpressCheckoutsm.gif');
  //define('MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG', 'https://www.paypal.com//es_ES/i/logo/PayPal_mark_37x23.gif');
  define('MODULE_PAYMENT_PAYPALEC_MARK_BUTTON_IMG', 'https://www.paypal.com//es_ES/i/logo/PayPal_mark_50x34.gif');