Page 1 of 1

custom checkout image buttons

PostPosted: September 3rd, 2011, 12:03 am
by antseo
Hi there, this is my first post here! Great plugin btw!!

I generated my paypal subscription buttons but want to replace them with graphic images I built. How do I do that?

Re: custom checkout image buttons

PostPosted: September 3rd, 2011, 8:24 am
by Eduan
I believe I know how to do it, though you'll have to try it to be sure :lol: .

You have to know some HTML...
Okay so you have your shortcode:
Code: Select all
[s2Member-PayPal-Button level="*" ccaps="music,videos" desc="Description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="%%custom%%" ra="0.01" rp="1" rt="L" rr="BN" image="default" /]
This will not necessarily will be the code.

Note the last code: "image='default' " that's the one you want to change, you'll find it on s2Member -> includes -> templates -> paypal-ccaps-checkout-button.html .

In there put your button (in HTML format) and change the code from "image='default' " to "image='name of your button' ".

I think that works, I'm not sure, never tried it but it can't hurt to try.

Re: custom checkout image buttons

PostPosted: September 3rd, 2011, 1:29 pm
by Cristián Lávaque
Thanks Eduan. :)

You're close, but not exactly. You'd use the image attribute, but just use there the URL to the image you want to use. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> image

For example:
Code: Select all
[s2Member-PayPal-Button ... image="http://mysite.com/images/my-button.png" /]

Re: custom checkout image buttons

PostPosted: September 3rd, 2011, 1:46 pm
by antseo
okay, that worked. Thanks!

Re: custom checkout image buttons

PostPosted: September 3rd, 2011, 1:47 pm
by cassel
Once you are comfortable with the shortcode, you can just edit it with the link to your graphic so you can have different graphics for different buttons! :) (and yeah, the defaul Paypal button is not that cute!)

Re: custom checkout image buttons

PostPosted: September 3rd, 2011, 2:17 pm
by Cristián Lávaque
seozones wrote:okay, that worked. Thanks!


Cool. :)