Course Recommendation Documentation

Documentation β€” Tutor LMS Course Recommendations
Tutor LMS Course Recommendations β€” Documentation
Plugin Documentation

Tutor LMS
Course Recommendations

Automatically shows students a recommendation popup when they complete a course β€” pointing them to what to study next, with an optional WooCommerce coupon to incentivize enrollment.

πŸ“¦ Version 2.1.1 πŸ”Œ Requires: Tutor LMS πŸ›’ WooCommerce optional

Ready to get started?

One-time payment of $49 Β· Lifetime updates Β· Secure checkout via WooCommerce

Purchase the Plugin β€” $49 β†’
Section 1

Overview

Tutor LMS Course Recommendations automatically shows students a recommendation popup the moment they complete a course. Admins configure a recommended next course and an optional WooCommerce coupon on each course β€” and the rest is handled automatically. The popup fires on completion, shows the course thumbnail, title, excerpt, and a View Course button, with no student action required to trigger it.

The plugin supports both the modern Tutor LMS Course Builder and the legacy WordPress post editor, so it works regardless of which editing workflow your site uses.

What it does

  • Adds a recommendation configuration panel to every course in both the Course Builder and the classic WordPress editor
  • When a student completes a course, a popup appears showing the recommended next course with its thumbnail, title, excerpt, and a View Course button
  • Optionally displays a WooCommerce coupon code and description in the popup to incentivize enrollment in the recommended course
  • Popup triggers automatically β€” zero student action required after the initial completion
  • Works on both course pages and lesson pages within the same course
  • Recommendation data is served via a secure AJAX endpoint, validated server-side before anything is sent to the browser
ℹ️

WooCommerce is entirely optional. If WooCommerce is not active, all recommendation features work normally β€” only the coupon code fields are hidden.

Section 2

Requirements

RequirementDetails
WordPress5.8 or higher
PHP7.4 or higher
Tutor LMSAny current version (Free or Pro)
WooCommerceOptional β€” required only for coupon code features
User roleAdministrator access required to configure recommendations
⚠️

If Tutor LMS is not installed and activated, WordPress will automatically deactivate the plugin on activation and display an error message. PHP 7.4 or higher is also enforced at activation time.

Section 3

Installation

Upload and activate

  1. Log in to your WordPress admin dashboard
  2. Navigate to Plugins β†’ Add New β†’ Upload Plugin
  3. Select the plugin ZIP file, click Install Now, then Activate Plugin

Activate your license

After activation, navigate to the License Management page. Its location depends on which other Ksajie plugins are installed:

  • If the Ksajie hub is present: Ksajie β†’ TCR License
  • If Tutor LMS is active but no Ksajie hub: Tutor β†’ TCR License
  • If neither is present: Settings β†’ TCR License

Enter your license key and click Activate License. The plugin will not function until a valid license is active.

Configure your first recommendation

Open any published course in the Tutor LMS Course Builder or the classic WordPress editor, enable the recommendation, select a target course and optionally a coupon, then save. The popup will fire automatically the next time a student completes that course.

Section 4

Configuring a Course Recommendation

Each course is configured independently. The same three fields are available in both the Course Builder and the classic editor β€” they save to the same underlying course settings.

FieldDescription
Enable Course RecommendationCheckbox. When checked, the Recommended Course and Coupon Code fields appear below it.
Recommended CourseDropdown listing all published courses. Select the course to recommend when this course is completed.
Coupon Code (Optional)Dropdown listing all published WooCommerce coupons. Only shown if WooCommerce is active and at least one coupon exists.
⚠️

If the Enable Course Recommendation checkbox is unchecked when the course is saved, the recommended course and coupon settings are deleted. If recommendation is enabled but no course is selected, no popup will show on completion.

Using the Tutor LMS Course Builder

When editing a course in the Tutor LMS Course Builder (version 3.3.0 or higher), the three recommendation fields appear in the Basic settings panel after the course description. The Recommended Course and Coupon Code fields are hidden until the Enable checkbox is checked. Save the course using the Course Builder’s standard Save button.

ℹ️

Requires Tutor LMS Course Builder v3.3.0+. Older versions do not support the field registration API used by this plugin. If you are using an older version, use the Classic Editor method below.

Using the Classic WordPress Editor

When editing a course via the classic WordPress editor (not the Course Builder), a Course Recommendation meta box appears in the right sidebar. It contains the same three fields. Check Enable course recommendation, select the Recommended Course from the dropdown, optionally select a Coupon Code, and click Update to save.

Both interfaces save to identical post meta keys, so switching between editors at any point will carry your settings across correctly.

Section 6

WooCommerce Coupon Integration

When WooCommerce is active, an optional coupon can be attached to each course recommendation. The coupon code and its WooCommerce description are both displayed in the popup to give students a clear incentive to enroll in the recommended course.

Selecting a coupon

In the recommendation configuration fields (both Course Builder and classic editor), a Coupon Code dropdown lists all published WooCommerce coupons by their coupon code. Select one to attach it to this course’s recommendation. Leaving it blank is perfectly fine β€” the coupon section simply won’t appear in the popup.

How coupons appear in the popup

When the AJAX endpoint builds its response, it looks up the selected coupon and retrieves its description from WooCommerce. Both the coupon code and the description are included in the response. In the popup, the coupon code is displayed in bold under a “Use Coupon:” label, with the WooCommerce coupon description shown as supplementary text below it. The coupon section is only visible if a coupon was configured β€” it is hidden entirely otherwise.

Without WooCommerce

If WooCommerce is not active, the coupon dropdown is not shown in either editor. Any previously stored coupon value is ignored and the coupon section will not appear in the popup. All other recommendation functionality works exactly the same.

Section 7

Frequently Asked Questions

No. The popup is triggered by a short-lived transient (2 minutes) that is set at the moment of course completion and deleted immediately on first read. The popup will only appear once β€” on the first page load following completion. Any subsequent visits to the course or lesson pages will not show it again.
Yes. There is no restriction on how many source courses can point to the same recommended course. Each source course stores its own independent recommendation configuration, so you can have ten different courses all recommending the same follow-up course without any conflict.
No. The course dropdown in the admin only shows published courses, and the AJAX endpoint validates that the recommended course has a published status before returning it. If the recommended course is later unpublished or trashed, the popup will close silently without showing any course.
The transient lasts 2 minutes. If the page reload that follows Tutor LMS’s completion confirmation happens within that window, the popup will appear. If the student navigates away entirely before the page reloads (closing the tab, for example), the transient will expire after 2 minutes and the popup will not show again.
No. WooCommerce is entirely optional. If it is not active, the coupon dropdown is not shown and coupon-related features are simply unavailable. All recommendation functionality β€” selecting a recommended course, triggering the popup, and displaying the course information β€” works without WooCommerce.
Yes. The classic WordPress editor meta box provides identical configuration options and works completely independently of the Course Builder. Both interfaces save to the same post meta keys, so switching between editors at any time carries your settings across correctly.
Confirm that the Tutor LMS Course Builder is version 3.3.0 or higher β€” older versions do not support the field registration API used by this plugin. If the version is correct, check the browser console for “[TCR] Failed to initialize” messages. The script retries up to 50 times at 100ms intervals, so try refreshing the page. If the Course Builder is unavailable, use the classic WordPress editor as a fallback.
Section 8

Troubleshooting

Work through the steps below before contacting support. Most issues fall into one of these categories.

! Popup not appearing after a student completes a course
  • Confirm the license is active on the License Management page
  • Open the course in the editor and verify that Enable Course Recommendation is checked and a Recommended Course is selected
  • Confirm the recommended course is published β€” draft or private courses are not returned by the AJAX endpoint
  • Confirm the student is on a Tutor LMS course or lesson page when they complete β€” the popup scripts are only loaded on those page types
  • Check the browser console for JavaScript errors that might prevent popup.js from running
  • Temporarily deactivate other plugins to check for conflicts
! Recommendation fields not appearing in the Course Builder

The fields require Tutor LMS Course Builder version 3.3.0 or higher. If you meet that requirement:

  • Check the browser console for [TCR] Failed to initialize messages β€” this means the Course Builder’s JavaScript API was not available within the 5-second initialization window
  • Try refreshing the Course Builder page β€” the script retries 50 times at 100ms intervals
  • If the issue persists, use the classic WordPress editor as a fallback β€” it provides the same configuration options
! Coupon not appearing in the popup
  • Confirm WooCommerce is active β€” the coupon section is completely hidden if WooCommerce is not detected
  • Confirm the selected coupon is still published in WooCommerce β€” trashed or expired coupons will not be returned
  • Confirm the coupon code was saved correctly by re-opening the course in the editor and checking the Coupon Code field
! Popup shows a loading spinner but never loads the course

This indicates the AJAX request is either failing or being blocked. Check:

  • Open the browser Network tab and look for a request to admin-ajax.php with the action tcr_get_recommendation β€” check its response for an error message
  • Confirm the recommended course is published and has not been deleted
  • Confirm no security plugin or server firewall is blocking AJAX requests to admin-ajax.php
Section 9

Support

πŸ’¬

Need help? Visit the support portal

If you’re experiencing an issue not covered in this documentation or the troubleshooting section, submit a support request through the portal. Please include the details below to help resolve your issue as quickly as possible.

Open Support Portal β†’
Your WordPress version
Your Tutor LMS version
Whether you are using the Course Builder or Classic Editor
A description of the expected behaviour and what actually happens
Any relevant JavaScript console errors from your browser’s developer tools