Test for user with cancelled subscription
Posted: May 3rd, 2011, 4:10 am
Hi,
I am creating dynamic menus depending on user subscription level in my template files, and I stumbled over a case which I did not cover yet (and I do not know how to do so for now).
If a user decides to cancel his subscription, or to downgrade it (either way), I would use a cancel or modify subscription button. I understand that afterwards, the user should still be able to access the contents he paid for, despite having cancelled or downgraded his subscription. However, how can such a user be identified?
For example, if a user cancelled his level 1 subscription, then officially he should now be Level 0. But at the same time, he should still be able to see Level 1 content. But a Level 1 user gets different membership upgrade options presented than a Level 0 user (as Level 1 upgrades might involve discounts etc.). So would that user now be tested for by [current_user_is(s2member_level0)]? Or s2member_level1? And if he would fall under s2member_level0, would he still be able to view content that I make only accessible to level1? That could case problems because some pages I allow only to be accessible by level1 users (like the membership cancellation page, or the membership cancellation feedback form page).
Thank you for your help,
Kind regards,
Steffen
I am creating dynamic menus depending on user subscription level in my template files, and I stumbled over a case which I did not cover yet (and I do not know how to do so for now).
If a user decides to cancel his subscription, or to downgrade it (either way), I would use a cancel or modify subscription button. I understand that afterwards, the user should still be able to access the contents he paid for, despite having cancelled or downgraded his subscription. However, how can such a user be identified?
For example, if a user cancelled his level 1 subscription, then officially he should now be Level 0. But at the same time, he should still be able to see Level 1 content. But a Level 1 user gets different membership upgrade options presented than a Level 0 user (as Level 1 upgrades might involve discounts etc.). So would that user now be tested for by [current_user_is(s2member_level0)]? Or s2member_level1? And if he would fall under s2member_level0, would he still be able to view content that I make only accessible to level1? That could case problems because some pages I allow only to be accessible by level1 users (like the membership cancellation page, or the membership cancellation feedback form page).
Thank you for your help,
Kind regards,
Steffen