How to Sell Moodle Courses with WooCommerce (Step-by-Step)
To sell Moodle courses with WooCommerce, you connect your Moodle site to WordPress, turn each Moodle course into a WooCommerce product, and have buyers enrolled in Moodle automatically when they pay. Moodle keeps doing what it is good at (teaching, tracking, grading) and WordPress handles what it is good at (pages, SEO, checkout).
Key takeaways
- Moodle handles teaching and tracking; WooCommerce handles course pages, checkout and payments.
- CourseTransit turns each Moodle course into a WooCommerce product and enrols buyers in Moodle when they pay.
- Decide your sync settings before the first sync, then set prices and write proper product pages.
- Always test one real purchase end to end before you launch.
This guide walks through the whole setup with CourseTransit, our free WordPress plugin for Moodle and WooCommerce. Expect about an hour for a first setup, most of it spent on prices and course pages.
Table of Contents
Why sell through WooCommerce instead of Moodle
Moodle can take payments on its own with its enrolment on payment method. It works, but the course catalogue lives inside Moodle, where pages are hard to design and hard to rank in search. With WooCommerce you get:
- Course pages that look like the rest of your website and can rank in Google.
- WooCommerce payment gateways, coupons, taxes and invoices.
- One checkout for courses and anything else you sell.
If you only run a few internal courses with no marketing site, Moodle’s own payments may be enough. We compare the two in Moodle native payments vs WooCommerce.
What you need
- A Moodle site where you have administrator access.
- A WordPress site with WooCommerce installed and a payment gateway set up.
- CourseTransit installed on WordPress, and the CourseTransit plugin installed on Moodle.
Step 1: Connect Moodle and WordPress
Open CourseTransit > Guided Setup in WordPress and follow it through. It walks you through linking the two sites so WordPress can read your courses and create enrolments in Moodle.
Until the connection is complete, CourseTransit records a “Moodle connection setup incomplete” warning under Settings > Logs. That log is the first place to look whenever something does not sync.

Step 2: Choose how courses sync
Open Settings > Synchronization. These settings decide what happens to your WooCommerce products every time you sync.

The ones to decide before your first sync:
- Default Enrollment Period: how long a buyer keeps access. Lifetime Access suits most self-paced courses. Use a fixed period for courses that need renewal.
- Product Status: “Publish Immediately” puts products live as soon as they sync. If you want to set prices and descriptions first, choose draft.
- Product Content Sync, Curriculum & Activities Sync, Category Sync and Course Images: whether syncing updates only new products, or existing ones too. “Update Existing & New Products” keeps WordPress in step with Moodle. If you plan to write sales copy in WordPress that differs from your Moodle summary, set Product Content Sync so it does not overwrite your edits.
- Missing Moodle Courses: what happens to a product when its course is removed from Moodle. “Mark Product Draft” takes it off sale without deleting your order history.
Automatic Course Sync is a Pro feature. It listens for changes in Moodle and updates products without you clicking Sync.
Step 3: Sync your courses
Go to Courses and click Sync All Courses, then confirm. CourseTransit fetches your Moodle courses and creates a WooCommerce product for each one.

The Courses screen then lists every course with its image, enrolment count, status and price. Pro adds Select & Sync Courses, so you can sync only the courses you want to sell.

Click Details on a course to check what came across from Moodle: sections, activities, the enrolment setting and a link to open the course in Moodle.
Step 4: Set prices
Synced courses arrive without prices. Set a regular price, and a sale price if you want one, from the course’s Quick Edit panel or the full WooCommerce product page. The Courses list shows both, with the regular price struck through when a sale price is set.
Write proper product descriptions while you are here. The product page is what ranks in search and what convinces buyers, so it deserves more than the Moodle course summary.
Step 5: Show courses on your site
CourseTransit adds a CT Courses block to the WordPress editor. Add it to any page to show course cards with image, category, short description, price and a View Course button.

You can sort by price or date, filter by category or instructor, and choose the number of courses and columns. The cards follow your theme, so they match the rest of your site.

Step 6: Set up the enrolment email
When someone buys a course, they need to know how to get in. Open Emails and pick a template, such as Enrollment Email (New User). Dynamic tags like {first_name}, {course_name}, {username} and {login_url} are filled in when the email is sent.

Keep the email short: what they bought, how to log in, who to contact. Send yourself a test before going live.
Step 7: Test a real purchase
Buy one of your own courses with a test payment or a 100% coupon. Then check three things:
- The order appears under Orders in CourseTransit.
- You are enrolled in the course in Moodle.
- The enrolment email arrived.

Payment methods that need manual confirmation, like bank transfer or cheque, leave WooCommerce orders “On hold” until you confirm payment. Check how enrolment behaves for those orders before you offer them to buyers.
If the enrolment does not appear, go back to Settings > Logs. Connection and permission problems show up there, and we cover the common ones in Moodle web service token errors.
After launch
The CourseTransit Dashboard shows revenue, orders over the last seven days and your latest courses at a glance.

Next steps most sellers take:
- Package related courses together with course bundles (Pro).
- Let learners log in once for both sites with Moodle WordPress SSO (Pro).
- Sell seats to companies with bulk and group enrolment (Pro).
- Sell programmes or memberships as recurring access to Moodle cohorts with WooCommerce Subscriptions (Pro).
Frequently asked questions
Sell your Moodle courses from WordPress
CourseTransit syncs Moodle courses into WooCommerce and enrols buyers automatically. The free version covers syncing, selling and enrolment.
About the author: Himanshu Saini
Founder of JustAddWater and Moodle LMS architect. 13+ years building and supporting Moodle, IOMAD and WordPress learning platforms.
