- 0:00
Hey, mathn from Memberstack here and welcome to members script 206. In this video, I’m going to show you how to add expiration or time limits to your free plans. This is good for offering free trials or promo access to gated content for a set duration of time. All right, so say I had three different plans with three different durations or time limits. So, if I were to add the first plan over here, the page will refresh and you can now
- 0:31
see that this says that this is my current plan. So, the redirect can be to any page you would like a user to be redirected to. So, inside of members deck, you’ll be able to see that the basic plan was added to my account and I now have a time limit set on that plan. So I can have access to anything that is under the basic plan for a period of 7 days. So if I were to edit this and say my start date was in January
- 1:03
the 10th and it was supposed to end today. Go back to the page and refresh this. You’ll see that the pre-plan button has now been activated again and inside of Memberstack I now don’t have a plan as well as no assignments. So essentially I lose access to any gated content that was under that basic plan. You can also add multiple free plans at once and
- 1:34
they’ll all have their own set time limits. You can see that that one was added and then this one over here. Okay, inside of members deck again see two plans were added and up here you can see that I have two different types of durations. This is 14 days and this is 30 days. Okay, now let me show you how to set all of this up
- 2:05
inside of Webflow. So in Webflow you are going to need to add members script 200 and it should look like this. If you’re watching this on YouTube, the link to that code should be in the description below. And if you’re watching this on the members de site, then you should have already seen the code. You can either add this sitewide on a specific page depending on your specific use case. All right, so on the page itself, you are now going to need the following attributes for your pricing buttons. To add a free plan to a
- 2:37
user, you are going to need a lot of attributes to make this work. The first attribute is MS code add trial and then you’re going to need data MS plan ID and that’s going to be the ID that you’re going to be adding to a user. This ID will be different for the different types of plans. Okay. The next one will be data MS duration days. So for the basic plan we have 7 days for any other plans that you define over here can be any other set duration. MS
- 3:09
redirect where you’d like a user to be redirected to and then MS um data MS loading text when ASA clicks on the button what would you like the text to say and then data MS success text text after they have added a plan what would you like that um button to say and the same goes for data MS error text if a free plan could not be added to a user what would you like that button to say okay and then you repeat the same for all other free plans So that was the
- 3:39
basic plan. Over here we have a business plan. As you can see that the ID now changes to business and the saturation trial days is now 14. But everything else stays the same. If you want to redirect them to another page once they’ve subscribed to business, you can do that over here as well. And that is it. You’ll now essentially be able to create free trials or promo access on your site. If you have any questions on this, feel free to reach out in the Slack 2.0 channel. Bye.