Page 1 of 1

EOT Question / Clarification

PostPosted: November 21st, 2011, 3:21 pm
by slyhands
Hello -

I am having difficulty finalizing a functionality issue utilizing s2member pro, which may be from a lack of understanding how the EOT functions.

I have a page that I wish to list out active members (those members that have NOT reached their EOT). This list is viewable to anyone visiting the site.

My problem is, I'm unsure how to filter the list based on EOT.

Currently, after grabbing my member list, I am attempting to grab their EOT date/time:

Code: Select all
$eot_time = get_user_field('s2member_auto_eot_time', $user->ID);


However, it appears this field is empty for every user. After reading through some forum posts, I believe some said EOT is set upon cancellation of the subscription for any reason (i.e. failed payment, account deletion).

I however understood EOT to be set upon the creation of the subscription, with an auto expiration set to the number of days paid for. This way, if a successful payment is never communicated back, the account will automatically cease to function. (or privileges therein). If this is the case, shouldn't there be a value for every members EOT?

Am I attempting to utilize the proper field (s2member_auto_eot_time) to evaluate an "active" member to include them in the list?

Thanks in advance,
Steve

Re: EOT Question / Clarification

PostPosted: November 25th, 2011, 1:34 pm
by Cristián Lávaque
Hi Steve.

I'm afraid that in the current release of s2Member, EOT is still not set for subscriptions unless they end in some way, but while they're still active the EOT isn't set. Only buy-now transactions get an EOT immediately after purchase.

What you can do is check their access level and assume that if they have the paid access, then they haven't reached EOT, and if they're Level 0 then they either never upgraded or already reached EOT. WP Admiin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals

I hope that helps. :)

Re: EOT Question / Clarification

PostPosted: November 27th, 2011, 3:44 pm
by slyhands
Cristian -

I see. The suggestion of checking against the access level will work perfectly!

Thanks!
Steve

Re: EOT Question / Clarification

PostPosted: November 27th, 2011, 8:29 pm
by Cristián Lávaque
Cool. :)