The user accounts you create using User Forms by Toolset Forms never expire.
If you need to handle time-limited accounts you need to use the WooCommerce Subscription plugin and create new user accounts during the product checkout instead of using Toolset User Forms.
The document explains how to setup the WooCommerce Subscription plugin to create expirable user profiles with a custom role and shows the flow from the end-user perspective.
- Install and activate the WooCommerce Subscription plugin.
- Go to the WooCommerce -> Settings page and switch to the Subscriptions tab.
- In the Roles section setup the following fields:
- Subscriber Default Role
- Inactive Subscriber Role
Subscriber Default Role
The role a user will be assigned when a subscription is activated after a successful purchase.
Here you can also choose one of the custom roles you have created using the Toolset Access plugin.
Inactive Subscriber Role
The role a user will be assigned after the subscription expires. Choose a role that has limited privileges, for example Subscriber.
In your Toolset Access Control panel make sure that the role you have chosen here doesn’t have access to recourses available only for paying members.
- Switch to the Accounts tab
- Check the following options:
- Enable customer registration on the “Checkout” page.
- Display returning customer login reminder on the “Checkout” page. (in case a subscriber would like to purchase a premium subscription)
- (Optional) Leave the Account creation fields unchecked.
- (Optional but useful), Go to Products -> Display. Check the Redirect to the cart page after successful addition option so that your customer will be redirected to the checkout page immediately after pressing the sign up button.
- Make sure you have at least one proper payment method configured. For example PayPal works very well with WooCommerce Subscription. For testing purposes use your PayPal sandbox.
- Create a subscription. The subscription is a special type of a WooCommerce product, where in addition to the product price you set up how frequently the renewal is required – e.g. every 2 weeks, every month or every 3 years etc.
- Go to Products -> Add New.
- Make the product a Virtual one.
- Switch from Simple Product to Simple Subscription.
- Set up Subscription price and duration time.
- Publish your product.
Here’s how the premium membership purchase will look from the user point of view.
After successful purchase (related order is completed) a new user will appear on the Users page:
If you’re looking for a great software that will help you provide secure payment collection through multiple gateways then we recommend Pabbly Subscriptions which offers no additional transaction fees and a number of important features.
for example: Monthly – price: $10
Every three months – price: $25
Yearly – price $85
Answer: Yes, you can. Use a Variable Subscription instead of Simple Subscription as your product type.
Answer: No, you cannot.
The role you set up in WooCommerce Subscription (see point 3, part 1) is a global one and applies to all your subscription products.
The only exception would the following case:
Membership role-1 – renewable subscription
Membership role-2 – lifetime subscription
To handle case #2 you don’t use the WooCommerce Subscription plugin but a User Form by Forms connected to a regular WooCommerce product.
Can I add new users with a User Form by Forms (so I can use some additional user fields) and connect it with a Subscription Product the same way I can connect it with a regular WooCommerce product?
Answer: No, you cannot. You either use User Forms with regular WooCommerce Products or you add new users via WooCommerce Subscription.