Jump to content

PayPal buttons


Starflix

Recommended Posts

14 hours ago, Starflix said:

Anyone of you know how to change PayPal "check out" and "subscribe" buttons? Now they look a bit old and weird

you could modify them in the viewinvoice.tpl template by changing {$paymentbutton} to ...

{$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/x-click-but20.gif':'https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_SM.gif'|replace:'https://www.paypal.com/en_US/i/btn/x-click-but03.gif':'https://www.paypalobjects.com/en_US/i/btn/btn_paynow_SM.gif'}

default buttons...

10Yb48W.png

updated buttons...

OwZxdKr.png

Link to comment
Share on other sites

1 hour ago, Starflix said:

What about if I want them to be more of the flat style?

same principle - you're just replacing 'old link' with 'new link'... so in the above code, the first two links are for a subscription button, the other two are One-Time payments.. if you're only using one of those options, then you only need to replace that one...

so from that PayPal buttons page you linked to, just use "Get Code" to get the image URL of the button(s) you want to use and paste it into the viewinvoicepdf.tpl code...

leI1JzZ.png

{$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/x-click-but20.gif':'https://www.paypalobjects.com/en_US/i/btn/btn_subscribe_SM.gif'|replace:'https://www.paypal.com/en_US/i/btn/x-click-but03.gif':'https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-small.png'}

as there was no subscribe button option, i've suppressed the option in the Paypal module settings for the above image.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated