Tips and Tricks HQ Support Portal › Forums › WP eMember › Upgraded membership retains previous membership level as secondary
- This topic has 7 replies, 2 voices, and was last updated 3 years, 11 months ago by wzp.
-
AuthorPosts
-
November 25, 2020 at 1:21 am #82051clearscopedesignParticipant
Hello,
When a member upgrades their membership, it seems that the previous ‘primary’ membership level for the member is retained as a ‘secondary’ membership level.
Is there any way to prevent that from happening, so that the member’s original ‘primary’ membership level (at the time of upgrade) would just be dropped (instead of being retained as a ‘secondary’ level) when the upgrade occurs?
Thank you!
November 25, 2020 at 4:23 pm #82061wzpModeratorDo you have Multiple Membership Levels Per User turned on?
November 25, 2020 at 7:08 pm #82063clearscopedesignParticipantYes we do have the ‘Enable Secondary Membership’ option turned on. We use that because we make use of various secondary membership levels to provide access to different materials, depending on a person’s level of training. So a member may have multiple secondary levels applied to their account, depending on what courses they have completed.
The issue we run into is with upgrading the ‘primary’ membership level: when someone upgrades their primary membership level, eMember retains their prior membership level as a secondary. For example, someone with ‘Basic’ membership upgrades to ‘Plus’ membership. As such, ‘Plus’ membership becomes their primary membership level; but their account still retains ‘Basic’ as a secondary membership level. In this scenario the member then still sees certain content that is intended only for ‘Basic’ membership, but we would prefer they no longer see that content, since their primary membership level is now ‘Plus’.
Is there any way to prevent this from happening?
Thank you!
November 27, 2020 at 3:08 pm #82068wzpModeratorThe issue occurs because multiple membership levels are turned on. If the “plus” level is supposed to lose access to the “basic” level material; then disable the multiple membership capability.
November 30, 2020 at 9:20 pm #82075clearscopedesignParticipantOk got it, thank you.
Unfortunately we cannot disable the multiple membership capability because we need to be able to apply secondary membership levels as ‘access’ levels to different content, based on various criteria.
In our case the ‘Plus’ membership is not supposed to lose access to the ‘Basic’ level material. Rather it’s related to just one particular instance – we have a couple different messages on the renewal page; one message is for the ‘Basic’ folks, and another different message is for the ‘Plus’ folks. For this we use the content section protection shortcode. But the issue is that, since the ‘Plus’ members maintain ‘Basic’ as a secondary after they upgrade, they then end up seeing both of those messages instead of only the ‘Plus’ message.
So I guess the other question would be – is it possible to apply the section protection shortcode only for a primary membership level (and not for a secondary)? This would then solve our issue because it would allow us to specify the messages on the renewal page only for those primary membership levels (and thus the ‘Basic’ message would only appear for those who have ‘Basic’ as a primary level and not as a secondary level).
I couldn’t find an option for this in the documentation, but figured I would ask just in case.
For example, something like: [emember_protected scope=”primary_membership” for=”2″]
If not, then we will just live with the ‘Plus’ members seeing the ‘Basic’ message on the renewal page.
Thank you!
December 1, 2020 at 4:36 pm #82078wzpModeratorUnfortunately we cannot disable the multiple membership capability because we need to be able to apply secondary membership levels as ‘access’ levels to different content, based on various criteria.
In our case the ‘Plus’ membership is not supposed to lose access to the ‘Basic’ level material.
You can apply more than 1 membership level to “Standard Protection.” In other words, if “plus” membership includes access to “basic” member content; just set the content protection for the basic members to also include the plus members.
- This reply was modified 3 years, 11 months ago by wzp.
December 16, 2020 at 2:03 am #82135clearscopedesignParticipantRight, the issue there is that, because upgrades to Plus retain the Basic membership level as a secondary, those users still see the message that is intended only for Basic.
I guess to simplify the previous question, we were just hoping there might be a way, using section protection, to display a message that only appears for users if they have the given membership level as their primary, but not as their secondary.
No worries, we will just make due with the present config.
Thank you kindly for all of your help
December 16, 2020 at 4:33 pm #82139wzpModeratorIf you are familiar with PHP coding, try playing with this…
$emember_auth = Emember_Auth::getInstance(); $member_id = $emember_auth->getUserInfo('member_id'); $all_level_ids = emember_get_all_level_ids_of_a_member($member_id);
You’ll end up with an array of all membership levels a person belongs to. Maybe you can do something with that? Hopefully, the first element is the base level.
-
AuthorPosts
- You must be logged in to reply to this topic.