Results 1 to 10 of 10
  1. #1
    Join Date
    May 2010
    Posts
    9
    Plugin Contributions
    0

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


  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

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

  3. #3
    Join Date
    May 2010
    Posts
    9
    Plugin Contributions
    0

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

    Thanks for your help Dr.Byte

  4. #4
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  6. #6
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default 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...)
    Last edited by akarui; 25 May 2010 at 02:17 PM.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  8. #8
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

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

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

    Quote Originally Posted by akarui View Post
    I think I have found where was the problem. The classic override doesn't work and this file should be hack directly.
    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.

  10. #10
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default 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

    PHP Code:
    // 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

    PHP Code:
    // 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'); 

 

 

Similar Threads

  1. Paypal express checkout - how to remove the button?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Jul 2011, 11:13 PM
  2. How do I get the PayPal Express Checkout button to show?
    By majormiles in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 1 Jul 2009, 08:47 AM
  3. Trying to get the PayPal Express Checkout button to show in my sidecart
    By JGraphics in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 21 Dec 2008, 06:50 AM
  4. replace the checkout button with paypal express
    By justjoshenu in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 26 Oct 2007, 10:22 AM
  5. Can I change the paypal express button?
    By ryhn in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 30 Mar 2007, 05:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR