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.

Voeg in enkele minuten lidmaatschappen toe aan uw Webflow-project.

Meer informatie

Meer dan 200 gratis kloonbare Webflow componenten. Aanmelden is niet nodig.

Bekijk bibliotheek

Voeg in enkele minuten lidmaatschappen toe aan uw React-project.

Aan de slag

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

Ledenafschriften nodig

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

Les

Kloonbaar

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.

Het laten werken

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.

Conclusie

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

Als u ons demoproject wilt gebruiken om u op weg te helpen, klikt u op de knop hieronder om het aan uw Webflow site toe te voegen.

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

INHOUDSOPGAVE
Ovidiu
Wat is Memberstack?

Auth & betalingen voor Webflow sites

Voeg logins, abonnementen, gated content en nog veel meer toe aan uw Webflow site - eenvoudig en volledig aanpasbaar.

Meer informatie
Bouwen

Probeer Memberstack uit en ontdek wat je kunt bouwen!

Memberstack is 100% gratis totdat u klaar bent om te lanceren - dus waar wacht u nog op? Maak je eerste app en begin vandaag nog.