Jump to content

Recommended Posts

Posted

For those people wanting to know how to change the PayPal payment image for the "Submit Payment" button, here is a solution...

When choosing to pay with PayPal there is a button in the form of an image.

ISSUE: This button looks more like a badge, rather than a "clickable" button

Not everyone making a payment would know to click on this image so they can pay.

The PayPal "Submit Payment" button is currently referencing a URL at  https://www.paypalobjects.com/en_US/i/bnr/horizontal_solution_PP.gif 

 

change_paypal_button_1.jpg
 

 

And we want to use our own custom PayPal graphic like...

change_paypal_button_2.jpg

 

HERE'S WHAT TO DO ...

STEP 1 -

Go to...

~/components/gateways/nonmerchant/paypal_payments_standard/views/default/

And open...

the " process.pdt " file.

It contains both buttons URL's. For recurring, and non-recurring.

Simply update the URLs to the new button image files.

 

STEP 2 -

The URL you will alter will look something like...

   $button_url = $recurring
        ? 'https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif'
        : 'https://www.paypalobjects.com/en_US/i/bnr/horizontal_solution_PP.gif';

    $this->Form->fieldImage(
        'submit',

 

Just change them to something like ...

   $button_url = $recurring
        ? 'http://www.mywebsite.com/my_PP_btn.jpg'
        : 'http://www.mywebsite.com/my_PP_btn.jpg';

    $this->Form->fieldImage(
        'submit',

 

==================

All DONE ! :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...