Page 1 of 2

Drip content for different pricing options

PostPosted: October 24th, 2011, 12:09 pm
by drawingsecretsrevealed
I'm having a hard time wrapping my brain around doing drip content for two different pricing options.

Option 1: $97 for unlimited access to all 12 lessons and exclusive members-only videos for a 4-month subscription

Option 2: $27/mo for 12 lessons and members-only videos to be released weekly

I already have the weekly drip content PHP script for the 12 lessons, but I need to add that in to the members-only videos.

My head explodes when I try to figure out how to have conditional drip content - for instance, I wouldn't need any drip content PHP script for the $97 members - they would get immediate and universal access. Currently I have the following PHP scrip for the weekly lessons:

(at the top of the page)
<?php if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 63){ ?>

(at the bottom of the page)
<?php } else { ?>
This lesson will be available for viewing one week after the previous lesson became available, to give you the chance to watch the previous lessons and practice the concepts presented there.
<a href="http://drawingsecretsrevealed.com/wp-content/uploads/2011/06/Lesson-10-Video-Title-with-Images.png"><img class="aligncenter size-medium wp-image-930" title="Lesson 10 Video Title with Images" src="http://drawingsecretsrevealed.com/wp-content/uploads/2011/06/Lesson-10-Video-Title-with-Images-300x168.png" alt="" width="300" height="168" />[/b]</a>
<?php } ?>

(The "ELSE" PHP script has the message with an image of the lesson thumbnail, so they know they're on the right page and there wasn't just an error on the page.)

So my question is do I just leave this PHP script in place, or do I need to specify WHICH member (the $27/mo member, not the $97 member) it applies to?

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 12:09 pm
by drawingsecretsrevealed
And when I introduce the PayPal button for the $97 customer, will that confuse the PHP script that applies to the $27/mo member?

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 1:06 pm
by Eduan
Have you tried using conditionals under WP Admin -> s2Member -> API / Scripting -> Simple/Shortcdoe Conditionals or Advanced/PHP Conditionals?

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 3:19 pm
by drawingsecretsrevealed
Yeah, it seems I need to do Custom Capabilities (Packages), but I'm going to need some guidance to do this right. I've read a good bit of what's in the s2Member's guide, and I understand about 75% of what I'm reading, but I don't feel confident enough to do this completely on my own.

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 3:27 pm
by Eduan
You know what I do if I'm alone in coding?
I experiment, I try each thing until I get a good hang of it.

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 4:42 pm
by drawingsecretsrevealed
Yeah, I'm not really comfortable with doing that because I have my site out there with my product and payment options and I don't want to lose customers because a package didn't work and now they're mad because they're not getting what they thought they would get. I need it done right at the outset. If it was just a test site, I would play around with it.

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 4:43 pm
by Eduan
If that's the problem then simply make a page for level 4 users so they can't access it and just play with that page.

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 5:15 pm
by drawingsecretsrevealed
So could I create a higher membership level with the exact same content just with different drip schedule? Or would a higher membership level automatically include everything in Level #1, which would defeat the purpose of the test?

Re: Drip content for different pricing options

PostPosted: October 24th, 2011, 5:32 pm
by Eduan
I told you about the page level 4 so that you experiment with the Custom Capabilities (a.k.a. CCaps) in order to find the combination you need, you could even make a page level 3 and a page level 4 so that while you figure it out they can work in the same way (without sending user's there).

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 12:24 pm
by drawingsecretsrevealed
But my point was that the problem is all the code. I mean, you leave one little parenthesis out and you're screwed and you'll never find that one tiny mistake when you go combing your page for the problem.

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 12:28 pm
by drawingsecretsrevealed
Really, I just need the actual snippet of code for my overall purpose.

1) Do Membership Levels automatically include everything in the previous membership levels? Or can I just use Membership Level #2 to have the same content as Level #1 but with different drip content behavior?

2) When I generate a button code for that $97 payment option, that shouldn't interfere with the current button code for the original $27/mo payment option, right? Or will I need to generate two fresh button codes?

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 1:38 pm
by Eduan
1.
Cristián Lávaque wrote:Depending on how you write the conditional. If you're checking that the person has access to Level 1 content, then it'll be true for level 1 as well as level 2, but if you're checking that the user has level 1 role specifically, then it'll be true for a level 1 user but false for a level 2 one.

I hope that makes it clear. :)

2. I shouldn't affect it, if what you mean is that the 2nd button affects the 1st.

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 1:45 pm
by drawingsecretsrevealed
The second answer is clear, but the first doesn't make sense to me. What specific conditional would I need to use? And where would I put it?

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 1:58 pm
by Eduan
Go to WP Admin -> s2Member -> API / Scripting -> Simple/Shortcdoe Conditionals or Advanced/PHP Conditionals and you'll see what I mean (if you read it of course).

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 2:00 pm
by drawingsecretsrevealed
Okay, I'm fooling around with it.

See attached screenshot: what does this message mean?

I'm trying to do a Membership Level #2 with the following description/PayPal button code: [s2Member-PayPal-Button level="2" ccaps="" desc="Silver Member / One-time payment for FULL and INSTANT access to all lessons, materials, and members-only content for a complete 4-month membership." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="drawingsecretsrevealed.com" ta="0" tp="0" tt="D" ra=".01" rp="4" rt="M" rr="BN" rrt="" rra="1" image="default" output="button" /]

Since I already have the exact same content drip-contented weekly for $27/mo., I was trying to offer $97 as a one-time payment for a 4-month access, non-recurring, trial. Did I do something wrong? Do I need to fool around with conditionals?

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 2:09 pm
by Eduan
Did you create a button for each offer?

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 2:11 pm
by Cristián Lávaque
I tried loading drawingsecretsrevealed.com and the address changed to http://www.drawingsecretsrevealed.com but then changed again to drawingsecretsrevealed.com without the www. Check if that could be the reason for your error. viewtopic.php?f=36&t=1066

Otherwise, please post the related log entries x'ing out any private info, please. WP Admin -> s2Member -> PayPal Options -> Account Details -> Enable Logging

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 2:34 pm
by drawingsecretsrevealed
Where would I check that address? In the PayPal button shortcode?

Re: Drip content for different pricing options

PostPosted: October 25th, 2011, 2:40 pm
by Eduan
If you mean the website address just type it in the navigation bar.

Re: Drip content for different pricing options

PostPosted: October 26th, 2011, 12:31 am
by Cristián Lávaque
You could check with your web host to make sure your server is configured to use or not the www, whatever you prefer. Then make sure the right version of your domain is used in the shortcode for the button.

Re: Drip content for different pricing options

PostPosted: October 26th, 2011, 10:43 am
by drawingsecretsrevealed
What's strange is that the button generator did the right thing with my $27/mo payment option, so the URL should be correct. It may be a moot point anyway, as I'm watching the videos on custom capabilities.

Re: Drip content for different pricing options

PostPosted: October 26th, 2011, 11:24 am
by drawingsecretsrevealed
Okay, it's looking from the videos I'm watching that custom capabilities wouldn't address different drip-content behavior. I just want a different pricing option for the same content to be access immediately, not drip-contented weekly like in my first pricing option.

The button generator should work. Unless since I already have a membership from previously testing out the first pricing option months ago, it won't let me double up??? My other button code works fine so the URL must be correct. It must be a different problem. I received the message I posted earlier when I successfully purchased the new pricing option through PayPal and was being redirected back to my site. That's when I got that message. However, that message is all Greek to me. Can you explain what it's trying to say exactly?

Re: Drip content for different pricing options

PostPosted: October 26th, 2011, 11:35 pm
by Cristián Lávaque
Basically, that you should make sure your PayPal configuration is all properly done and if you still get the error after that, check your server has cURL or FOPEN following the documentation the thread the link points too.

It's odd, though, that you get that error if you already have a working button, unless you did have the custom value different, but you say they're the same.

So, let me see if I understand what you want to do:

- Sell a subscription with monthly payments, that'd drip the content to the user.
- Have a one-time payment option that will give all the content at once.

Is that correct?

Re: Drip content for different pricing options

PostPosted: October 27th, 2011, 11:50 am
by drawingsecretsrevealed
That's EXACTLY what I want to do! Same content and same access, just drip-contented to one payment option.

Re: Drip content for different pricing options

PostPosted: October 28th, 2011, 8:42 pm
by Cristián Lávaque
Great! It's pretty simple to do with conditionals. Something like this:

Code: Select all
<?php if (current_user_can('access_s2member_level2') || (current_user_can('access_s2member_level1') && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 30)) { ?>
Show the content.
<?php } else { ?>
Sell him the access to it.
<?php } ?>


I hope that helps. :)