{"id":1921579,"date":"2021-02-02T07:16:41","date_gmt":"2021-02-02T07:16:41","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1921579"},"modified":"2021-02-02T07:47:33","modified_gmt":"2021-02-02T07:47:33","slug":"using-the-woocommerce-subscriptions-plugin-with-toolset","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/using-the-woocommerce-subscriptions-plugin-with-toolset\/","title":{"rendered":"Using the WooCommerce Subscriptions plugin with Toolset"},"content":{"rendered":"\n<p>You cannot use Toolset User Forms to create subscriptions because accounts they create never expire.<\/p>\n\n\n\n<p>On this page, we explain how to setup the <a href=\"https:\/\/woocommerce.com\/products\/woocommerce-subscriptions\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce Subscriptions<\/a> plugin to create expirable user profiles with a custom role. We also show the flow from&nbsp;the end-user&#8217;s perspective.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-setup-woocommerce-subscription\">How to setup WooCommerce Subscription<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Install and activate the&nbsp;<strong>WooCommerce Subscriptions<\/strong>&nbsp;plugin.<\/li><li>Go to the&nbsp;<strong>WooCommerce<\/strong> \u2192 <strong>Settings<\/strong>&nbsp;page and switch to the&nbsp;<strong>Subscriptions<\/strong>&nbsp;tab.<\/li><li>In the&nbsp;<strong>Roles<\/strong>&nbsp;section, setup the following fields:<ul><li>Subscriber Default Role<\/li><li>Inactive Subscriber Role<\/li><\/ul><\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"7fb544bf6d19c4e21aa3653b14cf7d3a\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-subscription-tab.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-subscription-tab-500x264.png\" alt=\"\" class=\"wp-image-1921709\"\/><\/a><div class=\"tb-image-caption\"><figcaption>WooCommerce Subscriptions \u2013 Subscription tab<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p><strong>Subscriber Default Role<\/strong><\/p>\n\n\n\n<p>This is the role a user will be assigned after a successful purchase and the subscription&#8217;s activation. <\/p>\n\n\n\n<p>Besides regular roles, you can also select any custom role you have created using the Toolset Access plugin.<\/p>\n\n\n\n<p><strong>Inactive Subscriber Role<\/strong><\/p>\n\n\n\n<p>This is the role a user will be assigned after the subscription expires. Choose a role that has limited privileges, for example Subscriber.<\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"8406da2a5512553fbb51b39f80f9e5e2\"><p><span>You need to make sure that the role selected here doesn\u2019t have access to recourses available only for paying members. You can control this on the <\/span><strong>Custom Roles<\/strong><span> tab of the <\/span><strong>Toolset <\/strong><span>\u2192 <\/span><strong>Access Control <\/strong><span>page.<\/span><\/p><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Switch to the&nbsp;<strong>Accounts<\/strong>&nbsp;tab.<\/li><li>Check the following options:<ul><li><strong>Allow customers to create an account during checkout<\/strong>.<\/li><li><strong>Allow customers to log into an existing account during checkout.<\/strong>&nbsp;<\/li><li>(Optional) Leave the Account creation fields unchecked.<\/li><\/ul><\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"0cdc1d06c01a4c626f809c98b5b79464\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-account-tab.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-account-tab-500x143.png\" alt=\"\" class=\"wp-image-1921855\"\/><\/a><div class=\"tb-image-caption\"><figcaption>How to set up the Accounts tab when you use Toolset with WooCommerce Subscriptions<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"6\"><li>(Optional but useful) Go to&nbsp;<strong>Products<\/strong> \u2192 <strong>Display<\/strong>. Check the&nbsp;<strong>Redirect to the cart page after successful addition<\/strong>&nbsp;option so that your customer will be redirected to the checkout page immediately after pressing the sign up button.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"10da626c37004b496b6e95520ef8a7a1\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-products-tab-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-products-tab-1-500x148.png\" alt=\"\" class=\"wp-image-1921893\"\/><\/a><div class=\"tb-image-caption\"><figcaption>How to redirect a user to the checkout page after pressing the add to cart (Sign up) button<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"7\"><li>Make sure you have at least one proper payment method configured on the <strong>Payments<\/strong> tab. The payment method <a href=\"https:\/\/docs.woocommerce.com\/document\/subscriptions\/enabling-payment-gateways-for-subscriptions\">must support subscriptions<\/a>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a subscription product<\/h2>\n\n\n\n<p>A subscription is a special type of WooCommerce product. In addition to the product price, you set up how frequently the renewal is required \u2013 e.g. every 2 weeks, every month, etc.<\/p>\n\n\n\n<p>Go to <strong>Products<\/strong> \u2192 <strong>Add New<\/strong> to create a new product and use the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Switch from Simple Product to&nbsp;<strong>Simple Subscription.<\/strong><\/li><li>Make the product a&nbsp;<strong>Virtual<\/strong>&nbsp;one.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"fc7ad7acc0b281d47d39e4e8694df0dd\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-virtual-product.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2021\/01\/toolset-woocommerce-subscriptions-virtual-product-500x188.png\" alt=\"\" class=\"wp-image-1921941\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Turning a regular Product into a WooCommerce Subscription<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Set up the Subscription price and duration time.<\/li><li>Publish your product.<\/li><\/ol>\n\n\n\n<p>Your subscription is now configured and you&#8217;re ready to start selling it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"frequently-asked-questions\">Frequently asked questions<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"can-i-offer-a-subscription-with-different-prices-for-different-billing-periods\"><strong>Can I offer a subscription with different prices for different billing periods?<\/strong><\/h4>\n\n\n\n<p>An example: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Monthly \u2013 price: $10<\/li><li>Every three months \u2013 price: $25<\/li><li>Yearly \u2013 price $85<\/li><\/ul>\n\n\n\n<p>Yes, you can. Use a Variable Subscription instead of Simple Subscription as your product type.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"can-i-create-two-or-more-subscriptions-with-a-different-role-for-each-subscription\"><strong>Can I create two (or more) subscriptions with a different role for each subscription?<\/strong><\/h4>\n\n\n\n<p>No, you cannot. The role you set up in WooCommerce Subscription (see step 3, Subscriber Default Role) is a global one and applies to all your subscription products.<\/p>\n\n\n\n<p>The only exception would the following case:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Membership role-1 \u2013 renewable subscription<\/li><li>Membership role-2 \u2013 lifetime subscription<\/li><\/ul>\n\n\n\n<p>To handle the second case with a lifetime subscription you shouldn&#8217;t use the WooCommerce Subscription plugin. Instead, use Toolset to create a <a href=\"https:\/\/toolset.com\/de\/course-lesson\/charge-users-for-registering-premium-accounts\/\">User Form connected to a regular WooCommerce product<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"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\"><strong>Can I add new users using a Toolset User Form (so I can use some additional user fields) and connect it with a Subscription Product in the same way I can connect it with a regular WooCommerce product?<\/strong><\/h4>\n\n\n\n<p>No, you cannot. You either use Toolset User Forms with regular WooCommerce Products or add new users via WooCommerce Subscription.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Can I control the user&#8217;s membership or the role so I can set it to expire on a specific date that may be separate from the date they paid to be a member?<\/strong><\/h4>\n\n\n\n<p>No, you cannot. You would need some additional plugins that control validity of user accounts based on the set expiration date.<\/p>\n","protected":false},"author":56710,"featured_media":1929181,"template":"","related-lesson":[8445],"class_list":["post-1921579","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-e-commerce"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1921579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/56710"}],"version-history":[{"count":8,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1921579\/revisions"}],"predecessor-version":[{"id":1929205,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1921579\/revisions\/1929205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1929181"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1921579"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1921579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}