View Categories

LearnCommerce – Complete User Guide

Table of Contents

1. Introduction #

LearnCommerce turns your Moodle website into an online course store. You can publish courses, set prices, accept payments and automatically enrol buyers after successful payment.

Buyers can browse courses, add multiple courses to their cart and complete their purchases directly on your Moodle website. You can manage course prices and store settings from Moodle’s administration area.

LearnCommerce uses Moodle’s built-in payment and enrolment systems. You do not need a separate shopping platform or a system to synchronise users between platforms.

Key features #

  • Sell Moodle courses directly from your website.
  • Set regular prices and temporary sale prices.
  • Offer free courses through the store.
  • Allow buyers to purchase multiple courses in one order.
  • Accept online payments through supported Moodle payment gateways.
  • Offer bank transfer as an offline payment method.
  • Automatically enrol buyers after successful payment.
  • Set lifetime or time-limited course access.
  • Send order and course access notifications.
  • Allow store staff to manage products without giving them full site administrator access.

LearnCommerce Free and Pro #

The free edition includes the core store, product publishing, cart, checkout, online and offline payment configuration, automatic enrolment, order tracking and buyer notifications.

LearnCommerce Pro adds features such as:

  • Coupon codes and tax.
  • Sales reports.
  • Administrative order management.
  • PDF receipts.
  • Buyer purchase history and wishlists.
  • Migration from Moodle’s Enrolment on payment method.
  • Subscriptions, bundles and team seats.
  • Multi-currency support.

This guide focuses on the LearnCommerce free edition. Pro-only features are identified wherever relevant. Refer to the Pro plugin’s own documentation for instructions on those features.


2. Requirements #

Before installing LearnCommerce, check that your Moodle website meets the following requirements.

RequirementDetails
MoodleMoodle 4.5 LTS or later. Tested up to Moodle 5.2.
PHPMust meet the requirements of your installed Moodle version.
Manual enrolmentsThe Manual enrolments method must be enabled.
Online paymentsRequires an enabled payment gateway and a payment account configured to use it.
Administrator accessA site administrator is required for installation and initial configuration.

You can still offer courses without an online payment gateway by enabling bank transfer or setting course prices to zero.


3. Installing LearnCommerce #

You can install LearnCommerce using either the Moodle plugin installer or your server’s file manager.

Method 1: Install using a ZIP file #

  1. Log in to Moodle as a site administrator.
  2. Navigate to Site administration → Plugins → Install plugins.
  3. Upload the LearnCommerce ZIP file.
  4. Click Install plugin from the ZIP file.
  5. Follow the installation and upgrade screens.
  6. Complete the installation process.

Method 2: Install manually #

  1. Download and extract the LearnCommerce ZIP file on your computer.
  2. Upload the extracted plugin folder to your Moodle installation.
  3. Place it in the following directory:
    • Moodle versions before 5.1: local/learncommerce
    • Moodle 5.1 and later: public/local/learncommerce
  4. Log in to Moodle as a site administrator.
  5. Navigate to Site administration → Notifications.
  6. Follow the instructions to complete the installation.

Open the setup wizard #

After installation, the next administration page you open will take you to the LearnCommerce setup wizard.

You can also access it later through:

Site administration → Plugins → Local plugins → LearnCommerce → Setup wizard

The wizard helps you configure the store name, currency, payment account and checkout options.


4. Setting Up LearnCommerce #

The setup wizard helps you prepare the store before publishing your first course.

Step 1: Configure store details #

Enter the following information:

  • Store name: The name displayed on the storefront and in store emails. If left empty, your Moodle site name is used.
  • Store currency: The currency used for all product prices.
  • Payment account: The Moodle payment account used for online payments.

Make sure the selected currency is supported by your payment gateway.

If you have not created a payment account yet, you can do so under:

Site administration → General → Payments → Payment accounts

Step 2: Configure checkout #

Choose whether visitors can create an account during checkout.

You can also enable bank transfer and enter the payment instructions buyers should follow.

Account creation at checkout requires self-registration to be enabled on your Moodle website.

Step 3: Review the summary #

The final step checks whether your store is ready.

The readiness check looks at:

  • Store currency configuration.
  • Online payment configuration.
  • Offline payment configuration.
  • Manual enrolments availability.
  • Whether at least one course has been added to the store.

If a check fails, use the Fix this link to open the relevant settings page.

Note: Tax and course import are not included in the free edition’s setup wizard. These are LearnCommerce Pro features.

You can run the setup wizard again whenever you need to review or change the configuration.


5. Understanding the LearnCommerce Navigation #

LearnCommerce adds store management options to your Moodle website.

Main menu #

Shop

Opens the public storefront where buyers can browse available courses.

Products

Displays the courses on your Moodle website and allows authorised staff to create and manage their store products.

The Products link is visible only to users who have the local/learncommerce:manageproducts capability.

Settings pages #

Navigate to:

Site administration → Plugins → Local plugins → LearnCommerce

You will find the following pages:

  • Setup wizard
  • General
  • Checkout and payments
  • Emails

Inside a course #

Open a Moodle course and navigate to its More menu. Select Sell in store to open the product form for that course.

Storefront address #

The main shop page is available at:

yoursite/local/learncommerce/index.php

Replace yoursite with your Moodle website address.


6. Managing Products #

A product represents a Moodle course that you want to sell through the LearnCommerce storefront.

Each course can have one product. The product contains the price, sale details and access duration. It does not replace or modify the original Moodle course.

Only courses with a published product and visible course settings appear in the shop.

6.1 Open the Products page #

  1. Log in with an account that has product management permission.
  2. Open Products from the main menu.
  3. Browse the list of Moodle courses.

The Products page displays each course’s store price, access duration and publication status.

6.2 Understand the available controls #

ControlPurpose
Search boxFind a course by its full name or short name.
All coursesDisplay all courses on the website.
In storeDisplay courses that already have a product.
PublishedDisplay published products.
Not in storeDisplay courses without a product.
Sell in storeOpen the product form for a course that has no product yet.
EditEdit an existing product.
View in storeOpen the product page as a buyer sees it.

If a price is displayed with another price crossed out, a sale is currently active for that product.

6.3 Add a course to the store #

  1. Open the Products page.
  2. Find the course you want to sell.
  3. Click Sell in store beside that course.Alternatively, open the course and select More → Sell in store.
  4. Tick Show in store to publish the product.
  5. Enter the course’s regular Price.
  6. Configure a sale price if required.
  7. Set the course’s access duration.
  8. Click Save changes.

To prepare a product without making it visible to buyers, leave Show in store unticked.

Important checks #

The product form warns you about two conditions that can prevent buyers from receiving course access:

  • Manual enrolments disabled: Buyers receive access through Moodle’s Manual enrolments method. Enable it site-wide and in the course.
  • Course hidden: A hidden Moodle course does not appear in the shop, even if its product is published.

6.4 Set a course price #

Enter the regular price in the store currency.

  • Enter a price greater than zero to sell the course.
  • Enter 0 to offer the course for free.

Free courses still use the checkout process. Buyers complete enrolment without making a payment, and the order is recorded.

6.5 Configure a sale price #

You can offer a temporary discount by setting a sale price.

  1. Open the product form.
  2. Expand the Sale section.
  3. Enter a Sale price lower than the regular price.
  4. If required, enable Sale starts and select the start date.
  5. Enable Sale ends and select the end date.
  6. Save your changes.

The sale automatically starts and ends according to the dates you select.

If you do not set dates, the sale remains active until you remove the sale price.

Buyers see the regular price crossed out and the sale price displayed while the sale is active.

Past orders retain the price the buyer actually paid. Changing or ending a sale does not change previous orders.

6.6 Set course access duration #

Use Access (days) to determine how long a buyer can access the course after payment.

ValueAccess
0Lifetime access.
Any positive numberAccess for the specified number of days after payment.

For example, entering 30 gives the buyer 30 days of course access after payment.

For time-limited access:

  • The buyer receives an expiry reminder before access ends, if reminders are enabled.
  • Moodle’s Manual enrolments method ends the enrolment when the access period expires.
  • The buyer can purchase the course again after their previous access has ended.

A buyer who already has access to a course cannot purchase that course again while the access remains active.

6.7 Hide or remove a product #

You can stop selling a course without affecting buyers who have already purchased it.

Temporarily stop selling

  1. Open the product form.
  2. Untick Show in store.
  3. Save the changes.

The product is no longer available for purchase. Existing buyers keep their course access.

Remove a product permanently

  1. Open the product form.
  2. Select Remove from store at the bottom of the form.
  3. Confirm the action.

The product is removed from the store, but previous orders and the access already granted to buyers are kept.


7. Understanding the Storefront #

The storefront is the part of LearnCommerce that buyers use to browse courses and make purchases.

It includes:

  • Shop page
  • Product pages
  • Cart
  • Checkout
  • Order page

The storefront uses your Moodle theme’s header and footer. LearnCommerce applies its own styling within the store pages, using the configured accent colour and store logo.

7.1 The Shop page #

The Shop page is available at:

yoursite/local/learncommerce/index.php

It displays courses that have a published product and are visible to students.

Each course card can show:

  • Course image, or a coloured cover with the course initials.
  • Course category.
  • Short course summary.
  • Teachers.
  • Course price.
  • Add to cart button.

Buyers can:

  • Search by course name.
  • Filter courses by category.
  • Sort by Newest.
  • Sort alphabetically from A to Z.
  • Sort by price from low to high.
  • Sort by price from high to low.

The Courses per page setting controls how many courses appear on each shop page. The default is 12.

The shop is public unless Moodle’s Force users to log in setting is enabled. When that setting is active, visitors must sign in before accessing the shop.

7.2 Product page #

Buyers can open a product page by selecting a course card or visiting its direct product URL:

yoursite/local/learncommerce/product.php?id=COURSEID

The product page contains the following sections:

Header

Displays the course name, category and course image.

Buy box

Displays the course price, sale price when applicable, access duration, and purchase buttons.

Buyers can select Add to cart or Buy now.

Course details

Displays the Moodle course summary.

What’s included

Shows counts of activity types in the course, such as quizzes.

Syllabus

Displays course section names and activity titles. It does not provide links to the actual course content.

Instructors

Displays course contacts, which are teachers by default, along with their profile pictures.

If a buyer already has access, the purchase area displays Go to course instead of the purchase options.

If a course cannot be purchased, the page displays the reason.

7.3 Cart #

The cart allows buyers to purchase multiple courses in one order.

It supports:

  • Multiple courses in a single order.
  • Free and paid courses together.
  • Removing courses before checkout.
  • Viewing the subtotal and total.

For signed-in buyers, the cart is saved to their account and is available across devices.

For visitors, the cart is stored in the current browser session. It moves into the buyer’s account when they log in or create an account.

If a course is no longer for sale, or the buyer receives access to it before completing checkout, LearnCommerce removes it from the cart and displays a message.

Buy now on a product page adds the course to the cart and takes the buyer directly to checkout.

Coupon fields and tax lines are available only when LearnCommerce Pro is installed. The free edition does not apply coupons or charge tax on its own.

7.4 Checkout #

The checkout process depends on whether the buyer is signed in.

For signed-in buyers

  1. Open the cart.
  2. Proceed to checkout.
  3. Select an available payment method.
  4. Click Place order.

For visitors

Visitors can log in or create an account at checkout if account creation is enabled.

After creating an account, the buyer must confirm their email address. The confirmation link takes them back to checkout to complete the purchase.

See the Payments section for the account creation requirements.

7.5 Order page #

After placing an order, the buyer is taken to the order page.

The page uses the order URL format:

yoursite/local/learncommerce/order.php?id=ORDERID

The information shown depends on the order status.

  • Pending: Displays a Pay button for online payment.
  • On hold: Displays bank transfer instructions and the order number the buyer should quote.
  • Completed: Displays a Go to course link for each purchased course. A Download receipt option is available with LearnCommerce Pro.

Buyers can only view their own orders.

7.6 My purchases and wishlist #

LearnCommerce Pro feature

LearnCommerce Pro adds a My purchases page, accessible from the user’s profile page and the store bar.

It contains three tabs:

TabInformation
CoursesPurchased courses, access duration, related order and Go to course link.
OrdersOrder date, courses, status, total and receipt link.
WishlistCourses saved by the buyer using the wishlist heart.

The wishlist requires a signed-in account. Visitors who select the heart are asked to log in and then returned to the course.

Without LearnCommerce Pro, buyers can still access their individual order pages, but the My purchases page and wishlist are not available.


8. Configuring Payments #

LearnCommerce uses Moodle’s built-in payment system.

You can accept payments through an online gateway, offer bank transfer, or provide free courses.

Available payment methods #

MethodWhen it is availableWhat happens
Pay onlineA payment account with an enabled gateway supports the store currency.The gateway processes the payment. After confirmation, the order is completed and the buyer is enrolled.
Bank transferOffline payment is enabled in LearnCommerce.The order remains On hold until a store manager approves it.
FreeThe order total is zero.The buyer completes enrolment without paying.

8.1 Set up online payments #

Online payments require an enabled Moodle payment gateway and a payment account.

Step 1: Enable a payment gateway

  1. Navigate to Site administration → Plugins → Payment gateways → Manage payment gateways.
  2. Find the gateway you want to use.
  3. Enable it.

PayPal is included with Moodle. Other gateways, such as Stripe and Razorpay, need to be installed as plugins.

Step 2: Create a payment account

  1. Navigate to Site administration → General → Payments → Payment accounts.
  2. Click Create payment account.
  3. Enter a name for the payment account.
  4. Save the account.
  5. In the account row, select the gateway name.
  6. Enter the required gateway credentials.
  7. Enable the gateway.

Step 3: Select the account in LearnCommerce

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Checkout and payments.
  2. Find the Payment account setting.
  3. Select the payment account you created.
  4. Save your changes.

You can also select the payment account in the first step of the setup wizard.

Step 4: Check the store currency

Navigate to:

Site administration → Plugins → Local plugins → LearnCommerce → General

Check the Store currency setting.

The currency must be supported by the selected payment gateway. If the gateway does not support the store currency, Pay online will not appear at checkout.

8.2 Test online payments before launch #

Before accepting real payments, use the test or sandbox mode provided by your payment gateway, if available.

  1. Configure the gateway’s test credentials.
  2. Create or use a test buyer account.
  3. Purchase a course.
  4. Complete the test payment.
  5. Confirm that the order changes to Completed.
  6. Check that the buyer is enrolled in the course.
  7. Once testing is successful, switch the gateway to live mode.

8.3 How online payment works #

The online payment process follows this sequence:

  1. The buyer places an order.
  2. The buyer selects Pay.
  3. The payment gateway opens.
  4. The buyer completes the payment.
  5. The gateway confirms the payment to Moodle.
  6. LearnCommerce marks the order as Completed.
  7. The buyer is enrolled in the purchased courses.
  8. The buyer receives the relevant order and access notifications.

If the buyer closes the payment window before completing the transaction, the order remains Pending. The buyer can return to the order page and try to pay again.

8.4 Accept bank transfer #

You can allow buyers to pay through bank transfer or another offline payment method.

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Checkout and payments.
  2. Enable Bank transfer / offline payment.
  3. Enter your bank details and other instructions in Payment instructions.
  4. Save your changes.

When a buyer selects bank transfer:

  • The order is created with the On hold status.
  • The buyer sees your payment instructions on the order page.
  • The buyer receives the instructions in the Order placed email.
  • Site administrators receive an order awaiting approval notification.

After receiving the payment, a store manager must approve the order and grant course access.

Important: Approving or manually cancelling a bank transfer order requires LearnCommerce Pro’s order management screen. The free edition can create and track the order, but does not provide the administrative approval screen.

Bank transfer orders are not cancelled automatically, regardless of how long they remain On hold.

8.5 Offer free courses #

To offer a course for free:

  1. Open Products.
  2. Select the course.
  3. Open its product form.
  4. Set the Price to 0.
  5. Publish the product.
  6. Save the changes.

Buyers see Complete enrolment instead of a payment option.

After completion:

  • The order is marked Completed.
  • The buyer is enrolled in the course.
  • The order is recorded with a total of zero.
  • The buyer receives the relevant notifications.

A cart containing both free and paid courses is processed as one order.

8.6 Allow account creation at checkout #

By default, visitors must log in or register before checkout.

You can allow visitors to create an account directly on the checkout page.

Step 1: Enable Moodle self-registration

  1. Navigate to Site administration → Plugins → Authentication → Manage authentication.
  2. Enable Email-based self-registration.
  3. Set Self registration to Email-based self-registration.

Step 2: Enable account creation in LearnCommerce

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Checkout and payments.
  2. Enable Create accounts at checkout.
  3. Save your changes.

The checkout registration form follows your Moodle site’s existing sign-up rules, including:

  • Password policy.
  • Allowed and denied email domains.
  • Custom profile fields displayed on the sign-up page.
  • reCAPTCHA, if configured for sign-up.
  • Site policy agreement, if required.

New buyers must confirm their email address before paying. The confirmation link takes them back to checkout.

If an email address already belongs to a Moodle account, the visitor is asked to log in instead.

Note: A visitor’s cart is stored in the current browser session. If they confirm their email in another browser, the original visitor cart will not be available there.

8.7 Configure unpaid order cancellation #

Online orders that have not been paid remain Pending.

LearnCommerce includes a daily scheduled task that cancels old Pending online orders.

To configure the waiting period:

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Checkout and payments.
  2. Find Cancel unpaid orders after.
  3. Enter the number of days.
  4. Save your changes.

The default is 7 days.

Enter 0 if you do not want unpaid Pending orders to be cancelled automatically.

This automatic cancellation applies to Pending online orders, not On hold bank transfer orders.


9. Managing Orders #

An order represents one buyer’s purchase. It records the buyer, purchased courses, prices, payment method and access granted.

LearnCommerce creates and tracks orders during checkout and payment. It also handles automatic cancellation of unpaid orders and grants access after successful payment.

9.1 Understand order statuses #

StatusMeaningDoes the buyer have access?
PendingOrder placed and waiting for online payment.No
On holdBank transfer order waiting for approval.No
CompletedPayment received or free order completed; access granted.Yes
CancelledOrder abandoned or rejected.No
RefundedOrder marked as refunded.Depends on whether access was kept.

Pending online orders are automatically cancelled after the configured number of days.

9.2 What the free edition handles #

The free edition automatically handles:

  • Creating orders during checkout.
  • Recording order details.
  • Completing successful online payments.
  • Enrolling buyers in purchased courses.
  • Completing free orders.
  • Cancelling old Pending online orders.
  • Sending order and course access notifications.
  • Displaying each buyer’s own order page.

The free edition can also record coupon discounts and tax values applied through LearnCommerce Pro hooks. However, the free edition itself does not apply coupons or charge tax.

9.3 What requires LearnCommerce Pro #

The following administrative order actions require LearnCommerce Pro:

  • Viewing and searching all orders.
  • Filtering the order list.
  • Approving bank transfer orders.
  • Manually cancelling orders.
  • Recording refunds against orders.
  • Granting or removing course access manually.
  • Generating downloadable PDF receipts.

With Pro, refunds can also be processed through supported gateways such as PayPal, Stripe and Razorpay. Partial refunds and buyer refund requests are also Pro features.

9.4 Understand the buyer’s order page #

Every buyer can access their own order page.

It displays:

  • Buyer information.
  • Order date.
  • Payment method.
  • Purchased courses.
  • Course prices and discounts.
  • Access details.
  • Order subtotal and total.

The buyer can use this page to pay a Pending online order or open a purchased course after the order is completed.

9.5 Important information about refunds #

LearnCommerce does not move money or process payments by itself. The payment gateway handles the actual transaction.

Refunds are made through the payment gateway or by bank transfer.

Recording the refund against the LearnCommerce order, updating its status and managing the buyer’s course access require LearnCommerce Pro.


10. Emails and Notifications #

LearnCommerce sends notifications to buyers during important stages of a purchase.

These messages help buyers understand whether their order is waiting for payment, completed or ready for course access.

10.1 Available notifications #

MessageRecipientWhen it is sent
Order placed (bank transfer)BuyerWhen a bank transfer order is placed.
Order paidBuyerWhen an order is completed through online payment, approved transfer or free enrolment.
Course access grantedBuyerWhen access to each purchased course is granted.
Access expiry reminderBuyerBefore time-limited course access ends.
Order awaiting approvalSite administratorsWhen a bank transfer order is placed.

The first four buyer messages can be customised.

The order-awaiting-approval notification is sent to users with the moodle/site:config capability and cannot be edited through the LearnCommerce Emails settings.

10.2 Configure expiry reminders #

The expiry reminder is sent before a buyer’s time-limited course access ends.

The default reminder period is 7 days.

To change it:

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Checkout and payments.
  2. Find Expiry reminder.
  3. Enter the number of days before access ends.
  4. Save your changes.

Enter 0 to turn off expiry reminders.

The reminder is sent once per course purchase by a scheduled task that runs every morning. Lifetime access does not trigger an expiry reminder.

10.3 Edit email messages #

You can customise the four buyer messages.

  1. Navigate to Site administration → Plugins → Local plugins → LearnCommerce → Emails.
  2. Select the message you want to edit.
  3. Update its Subject.
  4. Edit the Body using the HTML editor.
  5. Add the supported placeholders where needed.
  6. Click Save changes.

If you leave a subject or body field empty, LearnCommerce uses the default message.

The default text is translated according to the buyer’s language. If your buyers use different languages, keeping the default text may be preferable.

10.4 Available email placeholders #

You can use placeholders to insert buyer, order and course information into your messages.

PlaceholderInformation inserted
{firstname}Buyer’s first name.
{lastname}Buyer’s last name.
{fullname}Buyer’s full name.
{storename}Store name.
{siteurl}Moodle website address.
{orderref}Order number, such as LC-000042.
{orderdate}Date the order was placed.
{ordertotal}Order total with currency.
{orderitems}List of courses in the order.
{orderurl}Link to the buyer’s order page.
{paymentinstructions}Bank transfer payment instructions.
{coursename}Course name.
{courseurl}Course link.
{accessend}Access end date or lifetime access information.

Course-related placeholders are used in access and expiry messages.

10.5 Email, popup or both #

LearnCommerce messages use Moodle’s messaging system rather than sending emails independently.

Each buyer can choose how they receive messages.

To change personal notification preferences:

  1. Open Preferences → Notification preferences.
  2. Find the LearnCommerce notification types.
  3. Choose email, popup or both, depending on the available options.

Site administrators can configure the default notification preferences for all users under:

Site administration → Messaging → Notification settings

Actual email delivery also depends on the Moodle outgoing mail configuration:

Site administration → Server → Email → Outgoing mail configuration


11. General Settings #

LearnCommerce settings are available under:

Site administration → Plugins → Local plugins → LearnCommerce

The settings are organised into three pages:

  • General
  • Checkout and payments
  • Emails

Most of these settings are also available in the setup wizard.

11.1 General settings #

SettingPurposeDefault
Store nameName displayed on the storefront and in emails. Uses the Moodle site name if empty.Empty
Store currencyCurrency used for all product prices.USD
Store addressAddress printed on receipts with LearnCommerce Pro.Empty
Store logoLogo shown in the store bar and on Pro receipts.None
Receipt footerShort text printed at the bottom of Pro receipts, such as a company or tax number.Empty
Show “Shop” in the main menuAdds the Shop link to primary navigation.On
Courses per pageNumber of courses displayed on each shop page.12
Accent colourColour used for buttons, links and storefront highlights.#5b4ae6

Important: Changing the store currency

Changing the currency does not convert existing product prices. It changes the currency in which those prices are interpreted.

Set the correct currency before you start selling. Reports only count orders in the current currency.

11.2 Checkout and payments settings #

SettingPurposeDefault
Payment accountMoodle payment account used for online payments.None
Create accounts at checkoutAllows visitors to create an account during checkout. Requires site self-registration.Off
Bank transfer / offline paymentEnables bank transfer as a payment option.Off
Payment instructionsInstructions shown to buyers who choose bank transfer.Empty
Cancel unpaid orders afterNumber of days before a Pending online order is cancelled. Set to 0 to disable automatic cancellation.7 days
Expiry reminderNumber of days before course access ends when a reminder is sent. Set to 0 to disable reminders.7 days

11.3 Emails settings #

You can configure the subject and body of these four buyer messages:

  • Order placed (bank transfer).
  • Order paid.
  • Course access granted.
  • Access expiry reminder.

Leaving a field empty uses the default text.

11.4 Permissions #

The free edition provides the following product management capability:

CapabilityPurposeDefault role
local/learncommerce:manageproductsAccess Products and product forms to publish and manage course products.Manager

The setup wizard and three settings pages require moodle/site:config, which is normally available to site administrators.

LearnCommerce Pro adds separate capabilities for order management, coupons, reports and other administrative features.

11.5 Settings managed elsewhere in Moodle #

Some store functions depend on Moodle settings outside the LearnCommerce pages.

SettingMoodle navigationWhy it matters
Payment gatewaysSite administration → Plugins → Payment gatewaysEnables online payment methods.
Payment accountsSite administration → General → Payments → Payment accountsStores gateway credentials and configuration.
Manual enrolmentsSite administration → Plugins → Enrolments → Manage enrol pluginsAllows buyers to be enrolled after payment.
Self-registrationSite administration → Plugins → Authentication → Manage authenticationAllows account creation at checkout.
Notification defaultsSite administration → Messaging → Notification settingsControls default message delivery.
Outgoing mailSite administration → Server → Email → Outgoing mail configurationControls email delivery.
Force users to log inSite administration → Security → Site security settingsDetermines whether visitors can access the shop without signing in.

12. Troubleshooting and Frequently Asked Questions #

12.1 A course is not appearing in the shop #

Check the following:

  1. Open Products from the main menu.
  2. Find the course and check whether it has a product.
  3. Open the product form and confirm that Show in store is enabled.
  4. Open the Moodle course settings.
  5. Check that Course visibility is set to Show.

A course must have a published product and be visible to students to appear in the shop.

If a buyer already has access to a course, the product page displays Go to course instead of a price. This is expected behaviour.

12.2 Pay online is not available at checkout #

Check each of the following:

  1. Open LearnCommerce → Checkout and payments.
  2. Confirm that a payment account is selected.
  3. Navigate to Site administration → General → Payments → Payment accounts.
  4. Confirm that the payment account is enabled and not archived.
  5. Check that at least one gateway is configured and enabled within that account.
  6. Confirm that the gateway supports your LearnCommerce store currency.

For example, a gateway that only supports USD cannot process payments for a store configured in EUR.

You can also review the setup wizard’s Summary step for payment readiness checks.

12.3 A buyer paid but was not enrolled #

First, check the order status.

If the order is Completed:

  • With LearnCommerce Pro, open the order management page and use Grant access on the relevant course line.
  • Without Pro, open the course’s Participants page and enrol the buyer manually.

If the order is Pending:

The payment gateway may not have confirmed the transaction to Moodle.

Check the payment in the gateway’s dashboard. Review its configuration in the Moodle payment account, including live or test mode, credentials and webhooks.

Also check that Manual enrolments is enabled:

  • Site-wide: Site administration → Plugins → Enrolments → Manage enrol plugins.
  • In the course: Course → Participants → Enrolment methods.

Online orders cannot be approved manually. If the gateway confirms that a Pending order was paid, enrol the buyer from the course’s Participants page. With Pro, cancel the Pending order with a note explaining the situation, and investigate why the gateway confirmation did not reach Moodle.

12.4 The order is stuck on Pending #

For an online order, Pending means the buyer has not completed payment or the gateway has not confirmed it.

The buyer can return to the order page and select Pay to try again.

Old Pending online orders are automatically cancelled after the number of days configured in Cancel unpaid orders after.

Bank transfer orders use the On hold status, not Pending. They require manual approval through LearnCommerce Pro after the payment arrives.

12.5 “Message was not sent” appears when approving an order #

This message indicates that Moodle could not deliver one of the messages associated with the order, such as a course welcome message.

The usual cause is an outgoing mail configuration problem.

To check email delivery:

  1. Navigate to Site administration → Server → Email → Outgoing mail configuration.
  2. Review the mail server settings.
  3. Use Test outgoing mail configuration to test delivery.

In the current version, a failed message is noted in the developer debug log and the order still completes.

On a test site where email is not configured, the following setting can be added to config.php:

$CFG->noemailever = true;

12.6 Buyers are not receiving emails #

Follow these checks:

  1. Navigate to Site administration → Server → Email → Test outgoing mail configuration.
  2. Send a test message.
  3. Check the buyer’s Notification preferences.
  4. Check the site defaults under Site administration → Messaging → Notification settings.
  5. Ask the buyer to check their spam folder.
  6. Check whether your mail server is authorised to send messages for your domain, including SPF and DKIM configuration.

Remember that LearnCommerce messages use Moodle’s notification system. A buyer who selects popup-only notifications may not receive the message by email.

12.7 Visitors cannot create an account at checkout #

The Create accounts at checkout setting requires Moodle self-registration.

  1. Navigate to Site administration → Plugins → Authentication → Manage authentication.
  2. Enable Email-based self-registration.
  3. Select it under Self registration.
  4. Open LearnCommerce → Checkout and payments.
  5. Enable Create accounts at checkout.

New buyers must confirm their email address before paying.

If they do not receive the confirmation email, check the outgoing mail configuration.

If the email address already belongs to a Moodle account, the visitor must log in instead of creating another account.

12.8 The Shop link is missing #

  1. Navigate to LearnCommerce → General.
  2. Check Show “Shop” in the main menu.
  3. Enable it and save your changes.

If Moodle’s Force users to log in setting is enabled, visitors who are not signed in cannot see the shop link.

Some Moodle themes replace the primary navigation. In that case, add the shop URL to your theme’s own menu:

yoursite/local/learncommerce/index.php

12.9 The Products link is missing #

The Products link is only visible to users with the local/learncommerce:manageproducts capability.

Check the user’s role and permissions.

If your theme replaces the primary navigation, you can add the Products page manually:

yoursite/local/learncommerce/admin/products.php

The Products page also requires the appropriate capability.

12.10 Expiry reminders or order clean-up are not running #

Both functions use Moodle scheduled tasks and require Moodle cron to run.

The tasks are:

Scheduled taskDefault schedule
Send expiry remindersDaily at 06:00
Cancel stale ordersDaily at 03:00

To check them:

  1. Navigate to Site administration → Server → Tasks → Scheduled tasks.
  2. Find the LearnCommerce tasks.
  3. Check the Last run information.
  4. Confirm that the tasks have run recently.

If Moodle cron is not running, ask your hosting provider or administrator to configure it to run:

admin/cli/cron.php

The recommended frequency is every minute.

12.11 Coupons, tax and reports are not working #

Coupons, tax and sales reports require LearnCommerce Pro.

The free edition does not provide coupon codes, does not charge tax and does not include a reports page.

If these features are needed, check that LearnCommerce Pro is installed and refer to its documentation.

12.12 How do I uninstall LearnCommerce? #

Before uninstalling, make sure you have saved any information you may need later.

  1. Navigate to Site administration → Plugins → Plugins overview.
  2. Find LearnCommerce under Local plugins.
  3. Click Uninstall.
  4. Confirm the uninstall process.
  5. Remove the local/learncommerce folder from your Moodle server.

Important: Uninstalling LearnCommerce deletes its products, orders and carts. Course enrolments already granted to buyers are kept.

If LearnCommerce Pro is installed, uninstall it separately to remove its additional data, such as coupons, receipts and wishlists.

Keep any information you need for accounting or support before uninstalling. Order records are not stored elsewhere.


13. Best Practices Before Launch #

Before making your store available to buyers, review the following checklist.

Store configuration #

  • Set the correct store name.
  • Select the correct store currency.
  • Upload your store logo.
  • Set the storefront accent colour.
  • Decide whether the Shop link should appear in the main menu.
  • Review the number of courses displayed per page.

Course products #

  • Add products for the courses you want to sell.
  • Set the regular price for each course.
  • Review sale prices and sale dates.
  • Configure access duration.
  • Publish each product.
  • Confirm that the Moodle courses are visible.
  • Confirm that Manual enrolments is enabled.

Payments and checkout #

  • Enable and configure a payment gateway if accepting online payments.
  • Create a Moodle payment account.
  • Select the payment account in LearnCommerce.
  • Confirm that the gateway supports the store currency.
  • Test an online payment using a test account.
  • Configure bank transfer instructions if offering offline payments.
  • Decide whether visitors can create accounts during checkout.
  • Confirm that Moodle self-registration is configured if required.

Emails and notifications #

  • Review the four buyer email messages.
  • Check the store name and payment instructions.
  • Review the expiry reminder period.
  • Test outgoing mail.
  • Review Moodle notification defaults.
  • Confirm that Moodle cron is running.

Final buyer test #

  • Open the Shop page as a buyer.
  • Search and filter for a course.
  • Open a product page.
  • Add a course to the cart.
  • Complete a test checkout.
  • Confirm that the order status changes correctly.
  • Confirm that the buyer receives course access.
  • Check the buyer’s order page and notifications.

14. Related Documentation #

Use the following guides when you need more information about a specific area:

GuideCovers
Getting StartedRequirements, installation, setup wizard and navigation.
ProductsPublishing courses, prices, sales and access duration.
StorefrontShop, product pages, cart and checkout experience.
PaymentsOnline payments, bank transfer, free courses and account creation.
OrdersOrder statuses and free versus Pro order management.
EmailsNotifications, message editing and placeholders.
SettingsGeneral, checkout, email settings and permissions.
TroubleshootingCommon issues and solutions.

For LearnCommerce Pro features such as coupons, tax, reports, administrative order management, receipts, purchase history, wishlists, subscriptions, bundles, team seats, multi-currency and migration, refer to the documentation included with the Pro plugin.


15. Important Terminology #

TermMeaning
StoreEverything LearnCommerce adds to Moodle, including shop pages and management pages.
ProductA Moodle course offered in the store with its own price and access rules.
OrderOne purchase by one buyer. An order can contain several courses.
BuyerThe Moodle user who places an order. Visitors become buyers by logging in or creating an account during checkout.
Payment accountA Moodle payment account that stores payment gateway settings and credentials.
AccessThe course enrolment a buyer receives after an order is paid. It can be lifetime or limited to a specified number of days.

End of LearnCommerce User Guide

Powered by BetterDocs

Shopping Cart
Scroll to Top