Page 1 of 1

Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 1:20 pm
by cassel
As i am working on generating shortcodes for Paypal buttons, i notice that they always look the same. I am wondering if there is something that can be edited so that the button looks different: different size? different wording on it? I can create a button with "Buy now" or something like that, but how do i replace the graphic given in the shortcode?

I can do the graphic part, not the coding... yet. :)

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 1:45 pm
by psdesign
Yes I am wondering the same thing. I would like to have a different graphic for each membership level in my site. Is there a way to edit this in the CSS?

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 2:07 pm
by Cristián Lávaque
Hi guys. :)

In the shortcode you can specify what image to use for the button. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained)

image="default" Button Image Location. Possible values: default = use the default PayPal® Button, http://... = location of your custom Image.


Let me know if that helps.

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 2:17 pm
by cassel
AH!!!! so simple. Thank you!

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 3:55 pm
by Cristián Lávaque
:)

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 4:00 pm
by cassel
Well, if anyone wants to use some free graphics to start their own, i found these:
http://www.doubleplus.com/add-to-cart-b ... -free.html
http://www.freedesign4.me/vectors/free- ... tag-icons/

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 11:12 pm
by rbranson
OK I tried several variations of inserting the Paypal subscription button.

[s2Member-PayPal-Button image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" ...

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="default" output="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" /]

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" output="button" /]

[s2Member-PayPal-Button level="1" ccaps="" desc="Starter ... image="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" output="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_subscribeCC_LG.gif" /]

None of the above worked.

Re: Different graphics for Paypal button?

PostPosted: April 23rd, 2011, 11:37 pm
by Cristián Lávaque
Thanks for sharing that, Cassel! :)

rbranson, 2 and 4 have an invalid value for output, 1 and 3 should work, it worked for me with that image's URL you tried. Could you post your full button shortcode to see if something else is wrong with it?

Re: Different graphics for Paypal button?

PostPosted: April 24th, 2011, 12:11 am
by rbranson
OK. Thanks I got it working. I had indented the shortcode. Don't know if that made a difference.
Btw, Wordpress keeps adding "span style" tags. Is that a problem?

Re: Different graphics for Paypal button?

PostPosted: April 24th, 2011, 12:34 am
by Cristián Lávaque
I'm glad you got it working. :)

I don't know if the indentation was causing the trouble. I tried indenting the shortcode in a test I did and the button still looked fine.

Could you show me the span style added by WordPress? I don't think it'll cause trouble, but am curious now that you mentioned it.

Re: Different graphics for Paypal button?

PostPosted: April 24th, 2011, 11:09 am
by rbranson
You are right, the indentation wasn't a problem. There was a typo caused when I was editing.

Here is an example of the span style that is being added. It doesn't seem to be causing problems, except that it is also making the font small.

Code: Select all
<span style="font-family: Arial,Helvetica,sans-serif; font-size: small;">To register for FREE <a href="http://bewell.vrcities.net/wp-login.php?action=register">click here</a> - <span style="color: #cc0000;">Value</span></span>


I can edit, I think, but it is a hassle. As I thought about it, perhaps it is the theme I am using that is adding the span.

Thanks for your help.

Ralph

Re: Different graphics for Paypal button?

PostPosted: April 24th, 2011, 11:17 am
by Cristián Lávaque
Yeah, maybe the theme. :|

Where is it being added? To the button's code? (I was under that impression earlier because this thread is about the button image and you were talking about the shortcode earlier, but I'm guessing now that it may be somewhere else.)

Re: Different graphics for Paypal button?

PostPosted: April 29th, 2011, 12:26 am
by mmoore
What if I want to skip the whole short-code process. How can I get the generated URL for each level?

My buttons aren't made from graphics, they are pure css.

Thanks,

Mike

Re: Different graphics for Paypal button?

PostPosted: April 29th, 2011, 12:57 am
by Cristián Lávaque
mmoore wrote:What if I want to skip the whole short-code process. How can I get the generated URL for each level?


Hi Mike.

The button generators give you the full HTML too. WP Admin -> s2Member -> PayPal Buttons

Re: Different graphics for Paypal button?

PostPosted: May 2nd, 2011, 8:01 pm
by mmoore
The HTML view is a form without an address. How in the world am I going to link this to text? I want to replace the Paypal Button with "Buy Now" text.

Thanks,

Mike

Re: Different graphics for Paypal button?

PostPosted: May 3rd, 2011, 2:01 am
by Cristián Lávaque
I am really sorry, Mike, I had not understood correctly what you are trying to achieve.

I suggest you look at the output attribute of the shortcode. WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes (Explained)

I hope that helps. :)