My site uses only guest checkout, no registration.
My only payment extension is default_pp_express. Once I have it set up, I plan to load and use other additional payment methods, but for now, I only have this one payment extension loaded.
When I setup the extension, I chose the particular paypal icon button that I want to use. It's a standard jpg icon from Paypal. I loaded it in the Storefront Icon box during extension setup. It is saved in my root resources/image folder.
This part works.
It places my specified PP icon in the Payment Method window on the guest_step_2 page.
However, the extension is using a different icon on the checkout/cart page. I want to change it to use "my" preferred icon.
I think I found the correct file to modify:
site/extensions/default_pp_express/storefront/controller/blocks/default_pp_express_button.php
Here are lines 27-28 of this file:
$this->data['image_src'] = 'https://www.paypal.com/'.$locale[1].'/i/btn/btn_xpressCheckout.gif';
$this->data['href'] = $this->html->getSecureURL('r/extension/default_pp_express/set_pp');
I have tried to replace the image_src link to point at my file in my root resources/image folders, but I encountered 2 problems:
1 - It didn't change the image, i think because i don't know how to code this properly.
2 - It didn't even break anything. The wrong icon still appeared on the checkout/cart page, as though I hadn't changed anything, despite clearing cache everywhere.
How can I change the paypal button image displayed on the checkout/cart page from the standard PP button specified in the file above to a different PP button jpg saved in my resources/image folders?
An example would be great!
Thanks!