Starflix Posted October 7, 2017 Share Posted October 7, 2017 Hello, guys, Anyone of you know how to change PayPal "check out" and "subscribe" buttons? Now they look a bit old and weird Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 7, 2017 Share Posted October 7, 2017 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... updated buttons... 0 Quote Link to comment Share on other sites More sharing options...
Starflix Posted October 8, 2017 Author Share Posted October 8, 2017 Thanks for the answer Brian! What about if I want them to be more of the flat style? (e.g. https://www.paypal.com/us/webapps/mpp/logos-buttons) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 8, 2017 Share Posted October 8, 2017 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... {$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. 0 Quote Link to comment Share on other sites More sharing options...
Starflix Posted October 8, 2017 Author Share Posted October 8, 2017 Thank you, Brian! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.