Originally Posted by
jiji2018
How do I edit this icon?
First, if you haven't already, create a template-override of the payment-method's language file.
- 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.
- For each language that the store uses, starting with english and replacing english with the language name for each additional language (e.g. spanish):
- Create a template-override sub-directory /includes/languages/english/modules/payment/MY_TEMPLATE.
- Copy /includes/languages/english/modules/payment/paypalwpp.php to that just-created sub-directory.
- Edit that newly-created file, changing the constants highlighted below to suit your needs:
Code:
define('MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT', '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('MODULE_PAYMENT_PAYPALWPP_EC_BUTTON_IMG', '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('MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT', '');
Bookmarks