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™

Single protected button for selection of level

s2Member Plugin. A Membership plugin for WordPress®.

Single protected button for selection of level

Postby tkittredge » August 26th, 2011, 8:50 am

Is there a way to use a single protected button (encrypted / hosted) to provide for the selection of membership level, vs. options within a given membership level?

I've read through the thread... viewtopic.php?f=36&t=309#p1342

I'd like to be able to set the item_number in that case, which I can do for unprotected buttons (unencrypted / non-hoste), snippet here...

Code: Select all
<input type="hidden" id="item_number" name="item_number" value="1">
<table>
<tr><td style="vertical-align: bottom"><select name="os0" onchange="document.getElementById('item_number').value = this.options[this.selectedIndex].id;">
    <option id="1" value="Bronze">Bronze : $1.99USD - monthly</option>
    <option id="2" value="Silver" selected="selected">Silver : $2.99USD - monthly</option>
    <option id="3" value="Gold">Gold : $3.99USD - monthly</option>
</select></td><td style="vertical-align: bottom"><a href="#" onclick="formSubmit();"><img  src="https://www.paypal.com/en_US/i/btn/btn_subscribe_SM.gif"></a></td></tr>
</table>


Is it possible to do this in concept for protected buttons (encrypted / hosted) without having one button for each level?
Last edited by Cristián Lávaque on August 29th, 2011, 4:53 pm, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
tkittredge
Registered User
Registered User
 
Posts: 20
Joined: May 2, 2011

Re: Single protected button for selection of level

Postby Cristián Lávaque » August 26th, 2011, 11:33 pm

The problem is that if it's encrypted, then you can't edit it. Here's an idea I suggested to another user today, that you may find useful: viewtopic.php?f=4&t=14657&p=32997#p32997

Cristián Lávaque wrote:Or you can create the shortcode for the buttons and change the output to URL WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> ouput. Put them in a WP page, view it and copy the URL that each outputs. Now, in your sales page, you'd create an HTML form for the person to choose the plan and click the order button, but instead of submitting to PayPal, it'd submit to a custom script where you determine which of the plans he picked and redirect to the corresponding URL you generated earlier.
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: Single protected button for selection of level

Postby tkittredge » August 29th, 2011, 3:35 pm

Thanks Cristian, this gives me some new thinking on the problem which I will pursue!
T
User avatar
tkittredge
Registered User
Registered User
 
Posts: 20
Joined: May 2, 2011

Re: Single protected button for selection of level

Postby Cristián Lávaque » August 29th, 2011, 4:54 pm

You're welcome. Glad I could help. :)
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: Exabot [Bot] and 1 guest

cron