Page 1 of 1

"open new window" when visitor clicks on my Paypal button

PostPosted: March 22nd, 2011, 4:09 pm
by sam19701st
Hi,

Im up and running with the S2 Member plugin - but Im facing a problem with the Paypal buy button generated by S2 Member,

What I need;

when the visitor clicks my Paypal 'buy now' button, it opens in a new window - rather than redirecting to Paypal as its currently doing,

I have tried changing the short code but without success.

Id really appreciate your help guys!

thanks

Dan

Re: "open new window" when visitor clicks on my Paypal butto

PostPosted: March 22nd, 2011, 7:31 pm
by Jason Caldwell
Thanks for the excellent question.

Starting with s2Member v3.3.2+, it is now possible to modify your Shortcode in the following way.
Code: Select all
[s2Member-PayPal-Button ... output="anchor" /]
This would result in an anchor tag, instead of the traditional <form> tag that is output by default.
( i.e. <a href="https://www.paypal.com/..."><img /></a> )

Another output format is available ( url ), which provides even more flexibility:
Code: Select all
[s2Member-PayPal-Button .... output="url" /]
This will output just the raw URL, giving you the ability to incorporate your Shortcode into other HTML that you've generated on your own. For example, if you want to create a PayPal Button that opens in a new window, you could do something like this. * The Shortcode is abbreviated here; just to improve clarity on this topic.
Code: Select all
<a href="[s2Member-PayPal-Button ... output="url" /]" target="_blank">Checkout</a>

You will find further details covering all Shortcode Attributes in your Dashboard, under:
s2Member -> PayPal® Buttons -> Shortcode Attributes Explained

Re: "open new window" when visitor clicks on my Paypal butto

PostPosted: March 23rd, 2011, 6:20 am
by sam19701st
Hi & Thanks Jason for the reply,

i will have to upgrade to make the modifications you mentioned,

I'd like to add that without reservation, your product and the support outshines another wordpress product(free or paid) Ive ever used.

will get over to wordpress & add some stars!

credit where credit's due!

all the best & hope the product continues from strength to strength,

Dan Mc Grath

http://www.autobuyersecrets.com

Re: "open new window" when visitor clicks on my Paypal butto

PostPosted: March 23rd, 2011, 7:17 pm
by Jason Caldwell
Thanks for the KUDOS!
~ much appreciated.