Page 1 of 1

EOT Demote to specific role instead of Subscriber

PostPosted: September 21st, 2011, 5:21 pm
by poeta
Hi Team,
I have users registering freely as either free subscribers or Free Business. Free People can upgrade to become Privileged People once registered and logged in and Free Businesses can upgrade to become Privileged Businesses once registered and logged in.
When any Privileged People stop paying or cancel subscription payment I'd like to return them automatically to their previous role as Free People and likewise
when any privileged Business stop paying or cancel subscription payment I'd like to return them automatically to their previous role as Free Business.

How can I accomplish this with S2 Member Pro?
Thanks a lot

Re: EOT Demote to specific role instead of Subscriber

PostPosted: September 21st, 2011, 6:40 pm
by Bruce C
Other than a custom job, the only thing I can think of would be to have the business free level set as Subscriber + Custom Capability "business". Then, when a person signs up as a business, they will stay a business, and people will stay people.

Does that make sense?

Re: EOT Demote to specific role instead of Subscriber

PostPosted: September 22nd, 2011, 9:31 am
by poeta
Thanks Ace,
That sounds logical. I'm testing it now and will report back if indeed it keeps the custom capability.
Thanks a lot for your prompt response.

Re: EOT Demote to specific role instead of Subscriber

PostPosted: September 25th, 2011, 4:46 pm
by Cristián Lávaque
If I remember correctly, EOT Behavior would remove custom capabilities too.

You could maybe try the Notifications API to trigger a custom behavior on EOT. WP Admin -> s2Member -> API / Notifications

Re: EOT Demote to specific role instead of Subscriber

PostPosted: September 30th, 2011, 11:53 am
by poeta
Hi guys,
Actually I did it per Ace's suggestion. it works. and yes Christian is right as well that EOT removes custom capabilities as well. I just created a small plugin to check if certain field are fill in that are only required for Business members and update the role for the user to Business. This insure that they get the Business capability back even when EOT removes it. Thx guys for your help.

Re: EOT Demote to specific role instead of Subscriber

PostPosted: October 1st, 2011, 2:04 pm
by Cristián Lávaque
Cool. :)