How to Dynamically Display Upgrade Buttons Based on their current membership plan? Answered
Hi, who can help me show upgrade buttons based on a member's Price_ID? I use 3 plans (Basic, Pro, Expert) each with 2 recurring prices (monthly, annual). When offering upgrades, I want to show the right buttons ("Upgrade", "Switch to annual", "Your current plan" etc.). The most convenient way would be to display content based on a member's Price ID. Who would be able to help me on this in your team? Thank you. You are doing a great job by the way. 👍
Comments
10 comments
Great question! Script #187 should actually help you solve this pretty elegantly.
Here's why: Instead of manually checking Price IDs and building complex conditional logic, script #187 automatically detects which plan a member currently has and visually highlights it. You can extend this concept to dynamically update button text based on the member's current plan state.
Here's the workflow:
The beauty is you won't need to manually track Price IDs in your logic—the script already does the heavy lifting by matching member data to your pricing structure.
You could either enhance script #187 directly or build a companion script that uses the same member plan detection logic but adds your upgrade/downgrade button logic on top.
Definitely worth exploring this approach before needing custom development!
Hi Phillipp,
The code below would be helpful if you want to achieve that.
Feel free to modify it to suit your needs.
Do not hesitate to reach if you need help with anything.
Thank you, I made it work with your base code and some ChatGPT customizations!
what is the best way to make upgrade button not visible on dashboard after user has upgraded and if they cancel the add on plan (upgrade) the button would be visible again.
Hey Cainneach Lennon, you can make use of gated content ID attributes to show / hide the buttons based on the plan the user is in. More on how to implement this is explained here. Hope this helps.
Thank you A J adding the ! before content id solved it.
I wonder if you can help me solve my make scenario issue. My cms id or user type is not being added to member in memberstack and it looks like its a webhook issue maybe.
The error in the flow control router says 'bundle did not pass through the filter'
It looks like webflow is still not updated to connect to your site, cms. Make sure you update the webflow modules to work for your site like you did in earlier modules.
Not sure why CMS ID is not solid blue here in Create filter? Is this the issue?
I went through all the modules and followed Julians tutorial but I am still getting the same error on the flow control router
Also everywhere the CMS ID is mentioned it is not highlighted in blue like the rest of the custom fields if that helps
No, this shouldn't be an issue and the filter should work as it is intended to.
No issues, are you getting an error on the flow control router, I thought it was webflow module which should be solved if you update all the connections and map everything for your site specifically.
The error in the flow control router that just means that the member did not have a CMS ID assigned (in the custom field in memberstack), so it won't take that route. It is expected that it behaves that way and is not an error as such.
Hmm ok, so I'm still not getting the CMS ID added in memberstack so I might have to restart this scenario from scratch
Please sign in to leave a comment.