Documentation

Setup, Configuration, and Usage Guide.

1. Installation

Requirement: You need plugins on BOTH sides (WordPress and Moodle).

A) WordPress

  • 1 Go to Plugins > Add New.
  • 2 Search for "Simple Course Link".
  • 3 Install and Activate.

B) Moodle

  • 1 Download the Moodle plugin zip (link is in WP settings).
  • 2 Moodle: Site Administration > Plugins > Install plugins.
  • 3 Upload ZIP file and install.

2. Connection Setup

  1. Go to WooCommerce > Settings > Course Link.
  2. Copy the Shared Secret shown there.
  3. In Moodle, go to Site Administration > Plugins > Local plugins > Simple Course Link.
  4. Paste the Secret and save.
  5. Back in WordPress: Enter your Moodle Base URL and click "Test Connection". If it says "OK", you are ready!

3. Selling & Team Licenses

A) Single Sales

Create a product, select "Moodle Course" as type, and choose your course from the dropdown list. That's it.

B) Team / Bulk Sales (B2B)

Did you know? You can sell multiple licenses in one transaction.

If a customer (e.g., a manager) sets the Quantity to 10 in the cart, they will receive an email with 10 unique links. They can simply copy and paste these links to their employees via Slack or Email.

4. The Customer Journey

What happens when a user clicks the link?

  • Existing User: They are asked to log in. After login, they are instantly enrolled in the course.
  • New User: They see a simple registration form.

Note on Usernames: To simplify the process, the user's email address is automatically used as their username in Moodle.

5. Pro Features

The Pro Add-on unlocks powerful business tools:

  • Course Bundles: Select multiple Moodle courses in one product. One link unlocks them all.
  • Access Expiry: Set automatic expiration (e.g. 365 days). Perfect for subscriptions.
  • Manual Link Generator: Generate links in your dashboard without creating an order (e.g. for support or invoices).

6. Troubleshooting

I don't get the email with the link!

This is the #1 issue. Please check:

  • Is the order status "Completed"? If it is "Processing", no link is sent.
  • Is the "Completed Order" email enabled in WooCommerce > Settings > Emails?
  • Are you using a custom email template plugin? Make sure it supports the woocommerce_email_order_details hook.

"No results found" / HTTP 400 / Invalid Signature

This means the Shared Secret does not match or your server times are out of sync. Please copy the secret again to Moodle.