Thank you for your positive feedback, @ph59
You would need to make use of custom code to achieve this. I would recommend using the pmpro_after_checkout hook to run code after purchasing the first level (https://www.paidmembershipspro.com/hook/pmpro_after_checkout/), and then making use of the pmpro_changeMembershipLevel( 1, $user_id ); function to assign the additional levels to the user. The first attribute is the level ID, the second is the user ID.
Here are posts on how this function is used as well: https://www.paidmembershipspro.com/tag/pmpro_changemembershiplevel/
Note that you will need the Multiple Memberships Per User Add On in order for a user to make use of more than level: https://www.paidmembershipspro.com/add-ons/multiple-memberships-per-user/
I hope this helps?
Thanks Jarryd,
I knew I was forgetting something. In the example I gave, X, Y, Z do not need to remain in level 1 once they are in level 2. Does that change anything to your answer?
Another way to solve my issue would be to allow X, Y, Z to see level 2 checkout, even temporarily, while no one else could. Is that workable?
Thanks for clearing that up for me, Philippe.
Just to confirm I understand correctly, XYZ holds Level 1, but you only want them to be able to be able to sign up for Level 2 – if this is the case, then an ‘easy’ alternative would be to create a levels page that makes use of the membership shortcode to show/hide different levels.
You could then check if the user has Level 1, then show them a CTA or button to click through to Level 2 where they can sign u from there.
Details on the membership shortcode can be found here: https://www.paidmembershipspro.com/documentation/content-controls/with-shortcodes/
Because there have not been any recent updates to this topic, we will be changing the status to resolved.
If you’re enjoying Paid Memberships Pro, would you mind rating it 5-stars to help spread the word? https://ww.wp.xz.cn/support/plugin/paid-memberships-pro/reviews/