Thanks for purchasing s2Member Pro.
I want to allow level 1 access to my site for a donation (without specifying an exact amount).
Can you please explain how I would do that?
This is supported by s2Member Pro, but it
requires a little hacking.
You will need to install the
Exec-PHP plugin for WordPress first.
Then, you can insert your PayPal Pro Shortcode, like this ( with a PHP echo ):
- Code: Select all
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="$0.01 USD / One Time ( for lifetime access, non-recurring, no trial )" ps="paypal" cc="USD" custom="www.example.com" tp="0" tt="D" ra="<?php echo $_GET['amount']; ?>" rp="1" rt="L" rr="BN" /]
The relevant portion here, is this part:- Code: Select all
ra="<?php echo $_GET['amount']; ?>"
So now you can create links to your Form, that look something like this:
- Code: Select all
http://example.com/checkout/?amount=10.00
http://example.com/checkout/?amount=20.00
http://example.com/checkout/?amount=30.00
http://example.com/checkout/?amount=40.00
As a feature request, I'd like to determine membership based on the amount given...
ie- $1-99 donation = Level 1 access, $100-499 = level 2, etc...
This is NOT possible yet, even with s2Member Pro. I'll accept this as a feature request though.