If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / How to change the PayPal icon, the default icon is too ugly

How to change the PayPal icon, the default icon is too ugly

Locked

Started by jiji2018 on 26 Jul 2019, 3:12 PM · Views: 8,081

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Jul 2019, 3:12 PM
#1
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #1 by jiji2018

How to change the PayPal icon, the default icon is too ugly,
And it will make people who want to pay by credit card think that they don't support credit cards.
Attachment 18563

26 Jul 2019, 8:54 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Post #2 by dbltoe

Google PayPal Checkout Icons for a slew of choices.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

27 Jul 2019, 3:03 AM
#3
jiji2018 avatar

jiji2018

Zen Follower

Join Date:
Apr 2018
Posts:
121
Plugin Contributions:
0

Post #3 by jiji2018

How do I edit this icon?

27 Jul 2019, 11:49 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #4 by lat9

jiji2018:

How do I edit this icon?
First, if you haven't already, create a template-override of the payment-method's language file.

  1. Make note of your store's template-override directory, e.g. responsive_classic or my_template. That identifies the active template to Zen Cart. Let's use MY_TEMPLATE for the name used.
  2. For each language that the store uses, starting with english and replacing ***english ***with the language name for each additional language (e.g. spanish):
  3. Create a template-override sub-directory /includes/languages/english/modules/payment/MY_TEMPLATE.
  4. Copy /includes/languages/english/modules/payment/paypalwpp.php to that just-created sub-directory.
  5. Edit that newly-created file, changing the constants highlighted below to suit your needs:
  define('[B]MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT[/B]', 'Click here to pay via PayPal Express Checkout');

// EC buttons -- Do not change these values
///// You should only use choices listed on this page: https://developer.paypal.com/docs/classic/api/buttons/ or https://www.paypal-techsupport.com/app/answers/detail/a_id/632
  //define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', 'https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout.gif');
  define('[B]MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG[/B]', 'https://www.paypalobjects.com/webstatic/en_US/btn/btn_checkout_pp_142x27.png');
  define('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_SM_IMG', 'https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckoutsm.gif');

  //define('MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT', 'Checkout with PayPal. The safer, easier way to pay.');
  define('[B]MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT[/B]', '');