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™

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

s2Member Plugin. A Membership plugin for WordPress®.

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

Postby sam19701st » March 22nd, 2011, 4:09 pm

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
User avatar
sam19701st
Registered User
Registered User
 
Posts: 7
Joined: February 23, 2011

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

Postby Jason Caldwell » March 22nd, 2011, 7:31 pm

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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

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

Postby sam19701st » March 23rd, 2011, 6:20 am

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
User avatar
sam19701st
Registered User
Registered User
 
Posts: 7
Joined: February 23, 2011

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

Postby Jason Caldwell » March 23rd, 2011, 7:17 pm

Thanks for the KUDOS!
~ much appreciated.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron