latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Removing custom capabilities

Home Forums Community Forum Removing custom capabilities

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 10 months ago.

Topic Author Topic
Posted: Tuesday Feb 26th, 2013 at 9:32 am #43234

Is there a way to automatically remove a custom capability when a membership term auto-renews?

User case:

We are a sports club and we have four tiers of membership. (Adult/family/youth/FTE).
As a club we provide a way for members to store their equipment in our club house for an annual fee.
We need a way to charge for and record this fee.

The way I was thinking of doing it was to have a ‘buy it now’ button that adds a custom capability ‘storage’ to the member. This would then need to be re-purchased the next year.

Is there a better way to do this?

Thanks

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Wednesday Feb 27th, 2013 at 7:53 am #43295

Hi Chris.

Is there a way to automatically remove a custom capability when a membership term auto-renews?

Custom capabilities would be removed by s2Member when the Auto EOT Behavior demotes the user. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]

To remove the custom capability under other circumstances, you’d have to customize your installation. This article may help: Knowledge Base » Changing Roles/Capabilities via PHP

I hope that helps. :)

Posted: Wednesday Feb 27th, 2013 at 8:19 am #43301

OK thanks.

Does the Auto EOT trigger if they have a valid payment subscription?

Or just if they do not pay?

Posted: Wednesday Feb 27th, 2013 at 9:05 am #43314

If there’s an EOT time set, the Auto EOT Behavior will be triggered whether there’s a subscription or not.

If there’s no EOT time set but there’s a subscription tied to the user (gateway and subscr ID), then an EOT time will be set when the payment gateway notifies s2Member that the subscription ended (e.g. no payment, cancellation).

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.