How to setup WooCommerce Subscriptions with LearnDash?

WooCommerce
How to setup WooCommerce Subscriptions with LearnDash?

If you are interested in selling subscriptions to your online courses, LearnDash and WooCommerce Subscriptions make a terrific combination.

The two together provide everything that you need, no matter how you want to offer your courses.

In this article, I will show you how to both install and set up the two products on your WooCommerce site as well as how to set up LearnDash with the WooCommerce Payment Plans for Subscriptions plugin.

links

๐Ÿ‘‰ LearnDash
๐Ÿ‘‰ WooCommerce Subscriptions
๐Ÿ‘‰ WooCommerce Payment Plans for Subscriptions

table of contents

Installing LearnDash and WooCommerce Subscriptions

To install LearnDash for WooCommerce, do the following:

  1. Purchase a LearnDash package.
  2. Log into your LearnDash account.
  3. Download both the latest LearnDash plugin and the WooCommerce for LearnDash plugin.
  4. Go to your WooCommerce dashboard. Then, from the Plugins menu, select Add New.
  5. From the Add Plugins page, click Upload Plugin and afterward click Choose File.
  6. Select the first file that you just downloaded and click Open. Then, click Install Now.
  7. Finally, click Activate Plugin.
  8. From the Add Plugins page, click Upload Plugin and afterward click Choose File.
  9. Select the second file that you just downloaded and click Open. Then, click Install Now.
  10. Finally, click Activate Plugin.

To install WooCommerce Subscriptions, do the following:

  1. Go to the WooCommerce Subscriptions webpage and both buy and download the plugin.
  2. Go to your WooCommerce dashboard. Then, from the Plugins menu, select Add New.
  3. From the Add Plugins page, click Upload Plugin and afterward click Choose File.
  4. Select the file that you just downloaded and click Open. Then, click Install Now.
  5. Finally, click Activate Plugin.

Configuring LearnDash for WooCommerce Subscriptions

In order to properly integrate LearnDash with WooCommerce, you must disable guest checkout, as LearnDash needs a user account in order to function correctly.

To disable guest checkout in WooCommerce, do the following:

  1. Select Settings from the WooCommerce dashboard.
  2. Click the Accounts & Privacy tab.
  3. Uncheck Allow customers to place orders without an account.
  4. Check Allow customers to create an account during checkout.

Setting Up LearnDash Courses with WooCommerce Subscriptions

You can set up LearnDash courses with WooCommerce Subscriptions as either a Simple payment plan or a Variable payment plan.

If there are no variations in your LearnDash course offering, you probably want to set it up as a Simple payment plan. To do this, you need to edit the product in WooCommerce and select Simple payment plan from the Product data dropdown list. You also need to click Virtual on.

Then, in the Payment Plan price ($) fields, enter the price of the offering and the regularity that you would like to bill, such as every month. From the Expire after dropdown list, select when the offering will end.

While there are other fields on this screen that you may want to enter, the most important is the Related Courses dropdown list, where you should select all the LearnDash courses that apply to this offering.

If you want to offer variations of your LearnDash course offering, you need to select Variable payment plan from the Product data dropdown list. Then, you need to add both the attribute of the course that will vary and all its variations.

To add a new attribute, select Attributes from the Products menu and enter the name of the attribute in the Name field. Then, click the Add attribute button.

The attribute will afterward appear in the list of attributes on the right-hand side of the page. To add variations to this attribute, hover over it and click Configure terms, and the Edit Attribute page will display.

Here enter all variations of the attribute by entering their names in the Name field and clicking the Add new [Attribute] button for each one, which will then display on the right-hand side of the page.

Next, go back to the Product page and select the Attributes menu option. Then, select the attribute that you just added from the Custom product attribute dropdown list and click the Add button. Also, click the Select All button, which will place all the variations in the Value(s) field, and click on Used for variations. Finally, click the Save attributes button.

Next, select Variations from the Product Data menu. Then, from the Add variation dropdown list, select Create variations from all attributes and click Go.

Note: If you have more than 50 variations, you will have to create them in batches of 50.

After creating the variations, you will now have all the fields that you had available for aย Simple payment plan for each variation that you just created.

Note: Make sure to enter a price for each variation or they will not appear in your store.

When a customer buys a subscription to the course that we have just created, they will see the following:

Setting Up LearnDash Courses with WooCommerce Payment Plans for Subscriptions

The WooCommerce Payment Plans plugin is compatible with LearnDash courses. But, when applying it to LearnDash courses, you need to apply it as a Simple product.

Here are the steps for applying the WooCommerce Payment Plans plugin to a LearnDash course:

  1. Create a new WooCommerce product in WordPress.
  2. Select Simple product from the Product data dropdown box.
  3. Check the Virtual checkbox.
  4. Add the price of the course.
  5. Select the course(s) that you want to offer.
  6. Click the Payment Plans tab.
  7. Configure your payment plan options.
  8. Save and publish your product.

In the following example, I have set up a Learn Guitar Course that I am selling for $100 or 4 monthly payments of $25:

To properly apply the plugin to a LearnDash course, you also have to change some LearnDash settings. Go to LearnDash LMS > Courses and update the course’s settings to Closed Access Mode and set the Button URL to either your cart or product page, like this:

Finally, add the following code to your functions.php file in your child theme to prevent LearnDash from removing a user from a course after they complete all their payments:

function my_wpp_keep_course_access_on_expired_subscriptions(){
	remove_action('woocommerce_subscription_status_expired',
	array('Learndash_WooCommerce', 'remove_subscription_course_access'));
}

add_action('init', 'my_wpp_keep_course_access_on_expired_subscriptions');

Final Words

LearnDash and WooCommerce Subscriptions together make it incredibly easy to sell subscriptions to your online courses. This allows you to focus on what’s truly important: creating great content that your customers will love.

If you have any questions about this topic, please feel free to ask them in the comment section below. Also feel free to add any pertinent comments that you have about the topic.

Leave a reply

Comment policy: We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted. Your email address will not be published. Required fields are marked*

FAQ

Is WooCommerce Payment Plans Compatible with LearnDash Courses?

Yes, the WooCommerce Payment Plans plugin is compatible with LearnDash courses. But, when applying it to LearnDash courses, you need to apply it as as Simple product instead of as a Course.

For complete instructions on applying the WooCommerce Payment Plans plugin to a LearnDash course, go here.