How to Automatically Remove a Members Plan after a Set Time with Webflow

This post will teach you How to Automatically Remove a Members Plan after a Set Time in webflow and when/why you might want to Automatically Remove a Members Plan after a Set Time in your project.

Ajoutez des adhésions à votre projet Webflow en quelques minutes.

En savoir plus

Plus de 200 composants Webflow clonables gratuits. Aucune inscription n'est nécessaire.

Voir la bibliothèque

Ajoutez des adhésions à votre projet React en quelques minutes.

Commencer

How to Automatically Remove a Members Plan after a Set Time (Webflow & Memberstack)

Les registres des membres sont nécessaires

https://www.memberstack.com/scripts/87-remove-a-plan-after-countdown

Tutoriel

Clonable

Why/When would need to Automatically Remove a Members Plan after a Set Time?

  1. Offering members gated content for just a limited time.

This guide will help you offer gated content to your members for just a limited time after they make a one-time payment.

You’ll be able to display a countdown timer and a download button that as soon as the timer runs out, disappears entirely from the page and the plan is removed from their account.

Automatically removing a member’s plan after a set time on Webflow

To automatically remove a member’s plan after a set time on your Webflow site, we’re going to use MemberScript #87 – Remove a Plan After Countdown. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Additionally, we’re also going to need MemberScript #9 for the countdown timer.

Setting it up

Go to the page where your members are redirected to after payment to get the content they paid for.

The first thing you’ll need to do is set up the countdown using MemberScript #9.

Once that’s done, create and style a download button, then go on the site and inspect the page in your browser. Click on the download button and copy its HTML code, you’re going to need it later.

Now go back to Webflow and delete the button. In its place add an empty div block and add the following attributes to it:

  • data-ms-secure-html=”download-button”
  • ms-code-countdown=”hide-on-end”

Since we can’t trigger the removal of a paid plan in Memberstack, we’re going to get a little creative.

Go to your Memberstack dashboard and what you’ll need to do is create two plans: the first is a regular paid plan and the second is a free plan. When members purchase the paid plan, you’re going to use Plan Logic to add the free plan to their account.

Once you’ve got that set up, go to Gated Content in the dashboard and add the content you want to offer members under the free plan.

Now under Hosted Content, select HTML as the content type and name it download-button.

All you need to do now is grab the HTML for the download button that we copied earlier and paste it in the code field under Hosted Content and save everything.

Making it work

Now that you’ve got everything set up in both Webflow and Memberstack, all you need to do is add the MemberScript #87 custom code to your download page, after the MemberScript #9 code and before the closing body tag.

The one thing you’ll need to change in the custom code is the planId, which needs to match the free plan ID in your Memberstack dashboard.

Conclusion

That’s all there is to it, you can now go ahead and test everything on your live site.

Si vous souhaitez utiliser notre projet de démonstration pour commencer, cliquez simplement sur le bouton ci-dessous pour l'ajouter à votre site Webflow.

Our demo can help you easily offer gated content after a one-time payment, for a limited time only. Once that time passes, content isn’t available anymore and members’ access is removed.

Take me to the Scripts

TABLE DES MATIÈRES
Ovidiu
Qu'est-ce que Memberstack ?

Auth & paiements pour les sites Webflow

Ajoutez des logins, des abonnements, du contenu à accès limité, et plus encore à votre site Webflow - facile et entièrement personnalisable.

En savoir plus
Commencer à construire

Essayez Memberstack et découvrez ce que vous pouvez construire !

Memberstack est 100% gratuit jusqu'à ce que vous soyez prêt à vous lancer - alors, qu'attendez-vous ? Créez votre première application et commencez à construire dès aujourd'hui.