Link to support: https://www.learndash.com/support/docs/add-ons/woocommerce/

Create a Product & Assign Your Course

Now let’s create a product in WooCommerce.

  1. Navigate to PRODUCTS > ADD NEW
  2. Fill in the appropriate information for your product (see WooCommerce’s guide on adding products)
  3. Scroll down to the Product data section
  4. Next to the Simple Product dropdown menu, check the box for Virtual
  5. Open the Simple Product dropdown menu and choose Course
  6. Next to Related Courses, click on the course you’d like to associate with this product
  7. Be sure to publish or update your product when you’re finished

Set LearnDash course settings in a WooCommerce product

BUNDLE COURSES
You can bundle multiple courses and sell them with a single WooCommerce product. Hold down the SHIFT key when selecting courses from the list.

Set Up Your Course

After your product is set up in WooCommerce, you’ll need to make a few adjustments to your LearnDash course.

  1. Navigate to LEARNDASH LMS > COURSES
  2. Click on the course that corresponds with a WooCommerce product
  3. Click the Settings tab at the top
  4. Under Course Access Settings, look for Access Mode
  5. Set this to Closed
  6. In the Button URL field, enter the URL to your WooCommerce product page

LearnDash closed course with WooCommerce button URL

Now when people visit your course page, the “Take this Course” button will send them to the corresponding WooCommerce product page, where they can add the product to their cart & complete the checkout process.

TIP
Want to speed up the checkout process? You can add the product to a user’s cart AND redirect them to the cart page all in one step. In the Button URL field, enter your cart URL (typically /cart/), followed by ?add-to-cart=123, where 123 is the WooCommerce product ID. The entire URL will look like this:
https://yoursite.com/cart/?add-to-cart=123

Additional Tips

While not required, there are a few additional things you might want to consider with your setup.

Add a Purchase Note

WooCommerce has a built-in field called “Purchase Note.” This note is shown to the customer in a few places, after a successful purchase:

  • On the purchase confirmation page
  • In the customer’s receipt email

Consider using this field to provide instructions or next steps for taking your course, along with a link to the course page.

  1. Navigate to PRODUCTS
  2. Click on the product you’d like to add a purchase note for
  3. Scroll down to the Product data section
  4. Click on the Advanced tab
  5. Enter your instructions and/or a link to your course

WooCommerce purchase note for LearnDash course

This field accepts HTML. Here’s an example to create a link to your course. Replace the URL with the URL to your specific course.

 href="https://yoursite.com/courses/course-name/">Start This Course

Use Different Product Types

Did you know you can leverage any WooCommerce product type while keeping the course association?

Learn more about different product types and why you might want to use them.

  1. On your WooCommerce product, scroll down to the Product data section
  2. Select the Course product type & choose your Related Course (as outlined above)
  3. Now you can switch your product type, and WooCommerce will remember your course selection in the background

WooCommerce product types with LearnDash