Page 1 of 1

Single protected button for selection of level

PostPosted: August 26th, 2011, 8:50 am
by tkittredge
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?

Re: Single protected button for selection of level

PostPosted: August 26th, 2011, 11:33 pm
by Cristián Lávaque
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.

Re: Single protected button for selection of level

PostPosted: August 29th, 2011, 3:35 pm
by tkittredge
Thanks Cristian, this gives me some new thinking on the problem which I will pursue!
T

Re: Single protected button for selection of level

PostPosted: August 29th, 2011, 4:54 pm
by Cristián Lávaque
You're welcome. Glad I could help. :)