How to conditionally render buttons in a membership site when a user upgrades from individual plan to all-access plan? Answered
Hello,
The membership site I am creating has a variety of one-time purchase plans for each item within the same CMS collection. Each individual plan gates that specific cms item's URL. However, I also want to add a plan that unlocks all cms items gated content.
I added the PRICE_ID and CONTENT_ID to the cms items. Right now I have absolutely positioned buttons which are dynamically showing a "Purchase" button with the price_id or showing a "Go to" button when data-ms-content=content_id.
Currently, I added another absolutely positioned button for data-ms-content=all (for the unlock all items plan) for a total of 3 buttons.
I was wondering if there is a more efficient way to conditionally render the buttons when a user upgrades from just an individual plan to the all plan.
Thanks
Comments
3 comments
Hey there 👋 Thanks for explaining your goal and explaining what you've done so far.Â
At first glance I don't have any ideas to improve your setup... if I think of anything I'll let you know!
Hi! Your CMS set up sounds similar to mine. I have a question:
You said you had to make a separate plan for each item in thee collection?
Question for MS>
Is there a way to have one plan, different prices for each CMS item... and give them conditional visibility on the dashboard, depending on if a member has purchased the items?
Hey Alice 👋 If I understand correctly you'll need to setup a plan for each CMS item (or each group of CMS items). Contenting gating all happens at the plan level (not the price level).
Please sign in to leave a comment.