How to bypass the confirmation modal when upgrading or downgrading a membership in webflow

Article author
Josh Lopez
  • Updated

We recently had a forum post asking if it was possible to upgrade and downgrade free memberships without having to click on the confirm modal in Webflow. This is possible with a little bit of code!

If you would like to take a look at this webflow project, here it is!


Here is the code added to the project that makes it work.

function clickCheckout() {
$("#memberstack-checkout .ms-checkout-button").click();

$("#upgradeMembership").click(function() {
setTimeout(function(){ clickCheckout(); }, 1000);

$( "#downgradeMembership" ).click(function() {
setTimeout(function(){ clickCheckout(); }, 1000);

Was this article helpful?



Please sign in to leave a comment.