PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

custom checkout image buttons

s2Member Plugin. A Membership plugin for WordPress®.

custom checkout image buttons

Postby antseo » September 3rd, 2011, 12:03 am

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?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: custom checkout image buttons

Postby Eduan » September 3rd, 2011, 8:24 am

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.
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: custom checkout image buttons

Postby Cristián Lávaque » September 3rd, 2011, 1:29 pm

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" /]
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: custom checkout image buttons

Postby antseo » September 3rd, 2011, 1:46 pm

okay, that worked. Thanks!
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: custom checkout image buttons

Postby cassel » September 3rd, 2011, 1:47 pm

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!)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

Re: custom checkout image buttons

Postby Cristián Lávaque » September 3rd, 2011, 2:17 pm

seozones wrote:okay, that worked. Thanks!


Cool. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron