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™

EOT Question / Clarification

s2Member Plugin. A Membership plugin for WordPress®.

EOT Question / Clarification

Postby slyhands » November 21st, 2011, 3:21 pm

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
User avatar
slyhands
Registered User
Registered User
 
Posts: 36
Joined: September 1, 2011

Re: EOT Question / Clarification

Postby Cristián Lávaque » November 25th, 2011, 1:34 pm

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. :)
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: EOT Question / Clarification

Postby slyhands » November 27th, 2011, 3:44 pm

Cristian -

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

Thanks!
Steve
User avatar
slyhands
Registered User
Registered User
 
Posts: 36
Joined: September 1, 2011

Re: EOT Question / Clarification

Postby Cristián Lávaque » November 27th, 2011, 8:29 pm

Cool. :)
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: Yahoo [Bot] and 2 guests

cron