Page 1 of 1

Can you use "purchase date" in conditionals?

PostPosted: October 8th, 2011, 8:21 am
by cassel
I have a page set to distribute bonuses for those who purchased a specific package. The member gets the link in the Thank you email, and the bonus page available will depend on the package (right now, i have two packages). I have Basic package leading to success-basic page, and Element package leading to success-element page. Since many of th bonuses in the success-xxx pages are somewhat time limited, i would want to make sure the customer accessing the page TODAY (with the bonuses for today's promotion) are not the members who purchased 3 months ago (since they DID have their own bonuses 3 months ago). Is there a way to use a conditional like:
if member purchased this package since (insert start date of promo) they can access this page
if member purchased this package before (insert start date of promot) they get access to only the non-time-limited bonuses

Is it possible and if so, how?

Re: Can you use "purchase date" in conditionals?

PostPosted: October 9th, 2011, 1:00 am
by Cristián Lávaque
Right now the time for custom capabilities is not logged, so you can't use that yet, although Jason is working towards that and should be ready soon.

Other than that, you could add at timestamp http://php.net/time at the end of the URL you give the user. Then in the page check for it, only show content if it's there, and use that time to decide what bonuses to show.

It's not the best solution, because anyone that recognizes what that long number is, could change it to another date, but it'll be a small group.

Does that help?

Re: Can you use "purchase date" in conditionals?

PostPosted: October 9th, 2011, 3:10 pm
by cassel
Yes and no. Yes because i see there is a way to do it, and no, because it is foreign language for me! hehehe.
Maybe i'll just cross my fingers for the feature Jason is working on.

Re: Can you use "purchase date" in conditionals?

PostPosted: October 9th, 2011, 3:25 pm
by cassel
Thinking of it, could the principle of reversed content dripping be used for this?

Re: Can you use "purchase date" in conditionals?

PostPosted: October 11th, 2011, 12:28 pm
by Cristián Lávaque
What do you mean by that?

Re: Can you use "purchase date" in conditionals?

PostPosted: October 11th, 2011, 3:50 pm
by cassel
Maybe something like what was suggested in this thread:
viewtopic.php?f=4&t=15140
(or something like that?)

Re: Can you use "purchase date" in conditionals?

PostPosted: October 12th, 2011, 5:29 pm
by Cristián Lávaque
Sure, you have the Content Dripping times explained in the documentation. Then instead of checking if the current number of days is greater than, you'd check if it's less than. WP Admin -> s2Member -> API / Scripting -> s2Member Content Dripping