Back to Documentation

Selling Courses with WooCommerce

Sell Courses

Sensei is fully compatible with WooCommerce, and automatically detects if it is installed.

By default, Sensei enables the ability to link a course to a WooCommerce product. This allows a user to purchase a course on your site. When a course is linked to a WooCommerce product, the lesson content is only viewable to users who have actually purchased the course. If lessons contain video content, you will need to use a video hosting service to prevent your videos from being accessed directly.

Link a Product to a Course

To link a WooCommerce product to a Sensei course, ensure that WooCommerce is installed and activated. Then follow these steps:

  1. Go to Products > Add New.
  2. Add the product details, and select the checkbox for the Virtual product to remove shipping information at checkout. Click Save Draft or Publish the product.
  3. Go to Courses > All Courses and Edit the course you would like to attach to your new product.
  4. Go to the WooCommerce Product dropdown in the right sidebar and select the product to attach to the course.
  5. Select Update to save.

Sensei WooCommerce Product metabox

Users who purchase the course will gain access to its content as soon as the WooCommerce order status is Completed. If you created a virtual product when configuring the course product (as per step 2 above), the order is completed as soon as payment is made, at which point the user receives access to the My Courses section of your site.

Turn off eCommerce Functionality

eCommerce functionality is optional and can be switched off if you’d rather not sell courses.

To edit WooCommerce Settings, go to Sensei > Settings > WooCommerce and deselect the Enable WooCommerce Courses checkbox:

WooCommerce Settings

To learn more about WooCommerce, please visit the WooCommerce documentation.