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

Started by jeromev on 7 May 2010, 8:34 PM · Views: 6,564

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.

7 May 2010, 9:52 PM
#2
drbyte avatar

drbyte

Sensei

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

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

/includes/languages/spanish/modules/payment/paypalwpp.php

The Developers Toolkit is a handy tool for finding things like that:
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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,511
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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,879
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');

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...