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™

Can you use "purchase date" in conditionals?

s2Member Plugin. A Membership plugin for WordPress®.

Can you use "purchase date" in conditionals?

Postby cassel » October 8th, 2011, 8:21 am

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?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

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

Postby Cristián Lávaque » October 9th, 2011, 1:00 am

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?
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: Can you use "purchase date" in conditionals?

Postby cassel » October 9th, 2011, 3:10 pm

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.
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

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

Postby cassel » October 9th, 2011, 3:25 pm

Thinking of it, could the principle of reversed content dripping be used for this?
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

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

Postby Cristián Lávaque » October 11th, 2011, 12:28 pm

What do you mean by that?
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: Can you use "purchase date" in conditionals?

Postby cassel » October 11th, 2011, 3:50 pm

Maybe something like what was suggested in this thread:
viewtopic.php?f=4&t=15140
(or something like that?)
User avatar
cassel
Experienced User
Experienced User
 
Posts: 442
Joined: February 17, 2011

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

Postby Cristián Lávaque » October 12th, 2011, 5:29 pm

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
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: No registered users and 1 guest

cron