Getting Started with LifterLMS and WooCommerce
Selling your LifterLMS courses and memberships is also possible with WooCommerce when you use the LifterLMS WooCommerce integration add-on.
When you choose to sell with WooCommerce, Woo is in charge of sales, and LifterLMS steps back from handling payments for courses and memberships. On successful Woo product purchase, LifterLMS automates the enrollment in the associated course or membership.
Steps to Enable LifterLMS WooCommerce Integration:
- Make sure LifterLMS, WooCommerce, and the LifterLMS WooCommerce add-on are installed and activated. Learn more about installing and activating LifterLMS add-ons here.
- Navigate to LifterLMS > Settings.
- Access the “Integrations” tab.
- In the integrations table, locate and click on “WooCommerce”.
- Tick the “Enable WooCommerce” checkbox.
- Save changes by clicking the “Save Changes” button.
To enroll users in Courses or Memberships through LifterLMS, it’s essential to create a user account during the checkout process.Â
If you’re utilizing WooCommerce for your product sales, deactivate the WooCommerce “Guest Checkout” features. This guarantees that following a purchase via WooCommerce, there is a registered user available for LifterLMS to enroll in the recently purchased courses or memberships.
Follow these steps to disable Guest Checkout:
- On your WordPress admin panel, go to WooCommerce > Settings.
- Navigate to the “Accounts and Privacy” tab.
- Locate the option that reads “Allow customers to place an order without an account” and uncheck the checkbox.
- Click “Save” at the bottom of the screen.
Note: Be sure you also have enabled users to login to their account at checkout and register an account at checkout on this settings page.
To facilitate the sale of courses and memberships, associate your course or membership access plans with a corresponding WooCommerce product.
Follow these steps:
- Start by creating your product in WooCommerce.
- Mark your product as “virtual” and “downloadable” to ensure instant order completion on successful purchases.             Â
- Navigate to your LifterLMS course or membership.
- Either create a new access plan or use an existing one (learn more about access plans here).
- Instead of specifying a price, as you would with LifterLMS native payment gateways like Stripe or PayPal, choose a WooCommerce product (or product variation) to determine the access plan’s price and associate this course or membership with a specific WooCommerce product.
- You have the option to select a WooCommerce product or a single product variation in the access plan.
- The pricing table presented to your students will showcase pricing and subscription details sourced from the associated WooCommerce product.
- The purchase button, when clicked, will add the item to the user’s cart when a simple product or a product variation is chosen. For variable products, the buy button will redirect customers to the product page, enabling them to select their preferred variation.
- Upon successful purchase of the linked product, students will be automatically enrolled in the corresponding course or membership.
Combine multiple courses and memberships into a single WooCommerce product to create a bundle of courses and/or memberships.
Upon purchasing the product, customers will be automatically enrolled in all the courses and memberships linked to that specific product.
Here is how you can build multiple courses within memberships into a single WooCommerce product.
Follow these steps:
- Create Multiple Courses Or Memberships.
- Create a WooCommerce Product.
- Associate the product with the Courses or Memberships and configure the sales page. Be sure to click the save button below the access plan info. Note: You have the option to assign the same product created in WooCommerce to multiple courses or memberships that you have created.Â
When a student purchases the specific WooCmmerce product, all associated courses and memberships will be added to their account. - Update or Publish the Course or Membership Sales Page in LifterLMS.
By following these steps, students will be automatically enrolled in all the courses and/or memberships linked to the specific product upon purchase, providing them with access to the bundled content.
With LifterLMS WooCommerce, you have the flexibility to determine when students should be enrolled in (and removed from) courses and memberships, aligning with the WooCommerce order status of the associated WooCommerce order.
Default Enrollment Trigger:
The default enrollment trigger in LifterLMS is the “completed” status. Ensure that WooCommerce orders auto-complete by following these steps: WooCommerce Automatic Order Completion.
Alternative Enrollment Trigger Options
If you prefer an alternative enrollment trigger, visit LifterLMS > Settings > Integrations > Woocommerce to configure enrollment settings.Â
Below, you will be able to see the different available order statuses.
Order Enrollment Status
Select the WooCommerce order statuses that triggers automatic enrollment. We recommend choosing “completed” to ensure students are enrolled only after payment verification.Â
Order Unenrollment Status(es)
Choose WooCommerce order statuses that triggers unenrollment. We recommend selecting “Cancelled,” “Refunded,” and “Failed.”
Subscription Configuration (If Using WooCommerce Subscriptions)
With Woo Subscriptions, you can create and manage products requiring recurring payments. Woo Subscriptions allows you to introduce a variety of subscription options for physical or virtual products and services.
Subscription Enrollment Status
Specify the WooCommerce subscription status that triggers automatic enrollment. We recommend selecting “Active.”
Subscription Unenrollment Status(es)
Choose WooCommerce subscription statuses that trigger unenrollment. We recommend selecting “On Hold,” “Cancelled,” and “Expired.”
Follow these steps on how you can set up recurring payments with LifterLMS and WooCommerce Subscriptions:
- Make sure you have WooCommerce Subscriptions installed and activated on your WordPress site.
- Navigate to the WooCommerce product dashboard and select the desired product.
- Under “Product Data,” choose “Simple Subscription” or “Variable Subscription.”
- Set subscription details like price, sign-up fee, and free trial period.
- Make sure WooCommerce Integration is enabled in the LifterLMSÂ dashboard – Settings – Integration.
- Select the WooCommerce Subscription product with your LifterLMS course.
- Save the changes, and your recurring payment setup with LifterLMS and WooCommerce Subscriptions is complete.
A Members Only product is exclusively available for purchase by logged-in users who belong to a specific LifterLMS Membership.
When a non-member views a WooCommerce Product labeled as Members Only, they will encounter a link prompting them to explore and purchase the required Membership before being able to buy the Members Only product.
To designate a product as Members Only, navigate to the “Advanced” Tab under “Product Data” on the WooCommerce product. Look for the “Members Only” select box and choose a LifterLMS Membership.
You can customize the text displayed on the Members Only button using the “Members Button Text” option.
For variable products, access the Members Only settings for each variation individually. This allows you to set unique membership requirements for each product variation.
When utilizing the LifterLMS WooCommerce add-on,be aware of WooCommerce’s dedicated account pages and login features (WooCommerce Pages).Â
The default WooCommerce “My Account” page displays customer information, including their account details and order history.
With the LifterLMS WooCommerce add-on, the LifterLMS student dashboard information is integrated into the WooCommerce account page, as illustrated below.
Displaying WooCommerce Pages Using Shortcodes (Optional)
The WooCommerce account page is accessible at yourwebsite.com/my-account/.
If you wish to personalize the dashboard by adjusting LifterLMS options, refer to this guide.
For logged-in users, their account page will reflect their personalized dashboard of combined WooCommerce and LifterLMS information, as depicted in the image above.
However, for visitors who are not logged in, accessing the account page will present them with a convenient login form.
Enabling the Debug Log feature allows you to capture and log debugging information related to your WordPress site’s activities.Â
This can be invaluable for troubleshooting issues, identifying errors, and diagnosing technical problems that may arise.Â
Debug logging helps developers pinpoint and resolve any tech issues more effectively.
To activate Debug Logging in LifterLMS, follow these steps:
- Go to LifterLMS -> Settings -> Integrations
- Find the LifterLMS WooCommerce Settings box
- Tick the box next to “Enable debug logging”
- Click “Save”
Below this setting, you’ll find the complete path to the log file on your server. The log file captures valuable information for troubleshooting issues related to the add-on.
How to Test Your WooCommerce Integration
-
- Make sure that after creating your product within WooCommerce, it is correctly displayed on the associated access plan of your course or membership.                                                       Â
- Navigate to your shop page to confirm that your product is visible.
- Search for the product associated with your course or membership within the WooCommerce Shop Page.
- Test the functionality by adding the product to your cart.    Â
- Proceed to the cart page to review the selected product and ensure it reflects accurately.
- Select the product within the cart to check its details, such as pricing, associated courses and /or memberships, and other product details.
- Click the checkout process to assess the flow and functionality of the payment and order placement procedure.
- Upon successfully completing the checkout process, verify whether you receive a notification indicating that you are already enrolled in the courses or membership associated with the product.
If you would like to autogenerate username and password from the email collected on the checkout screen see how here:Â How do I autogenerate username and password from email address collected at checkout?