Appearance
LearnDash Integration
Connecting FluentCart with LearnDash allows you to sell access to your online courses and automatically manage student enrollment. When an event happens in your FluentCart store (like a successful purchase), this integration can instantly enroll customers into the correct LearnDash courses or groups, providing a smooth and automated experience.
This guide will show you how to activate the integration and configure enrollment rules using Integration Feeds.
Activating the LearnDash Integration
The LearnDash integration is part of FluentCart Pro. Make sure FluentCart, FluentCart Pro, and LearnDash are installed and active. There is no module to switch on: once all three are active, LearnDash appears in the Add Integration list.
Configuring Enrollment Rules (Integration Feeds)
The core of the integration lies in creating Integration Feeds. Think of a "feed" as a specific instruction or rule that tells FluentCart: "When this happens, enroll the customer in that LearnDash course or group."
You can create these feeds in two places:
- Globally: These feeds apply based on events happening anywhere in your store. Useful for broad actions, like adding every new subscriber to a general student group.
- Product Specific: These feeds apply only for a specific product. This is the most common and recommended method for selling individual courses.
How to Create an Enrollment Rule (Feed)
You have two ways to create these enrollment rules, depending on whether you want the rule to apply broadly or only to a specific product. Both methods use the same configuration settings.
Method 1: Creating a Global Feed
Use this method if you want a rule to apply based on events happening anywhere in your store (e.g., enrolling every new subscriber into a general student group).
- From your WordPress dashboard, go to FluentCart Pro > Integrations.
- Find the Global Integrations Feeds section at the top of the page.
- Click the Add Integration button located in the top-right corner of this section.
- A dropdown menu will appear. Choose LearnDash from the list.
- You will now be taken to the feed configuration screen where you can define the specifics of your global rule (explained in the below section).
Method 2: Creating a Product-Specific Feed (Recommended for Selling Courses)
Use this method to link a specific FluentCart product directly to the LearnDash course(s) it grants access to. This is the most common way to sell individual courses.
- From your WordPress dashboard, go to FluentCart Pro > Products.
- Find the product you want to link to LearnDash (e.g., your "Learn Python Course") and click on its name or the "Edit" link to open the product editor.
- Inside the product editor, look for the row of tabs near the top (Edit Product, Upgrade Paths, etc.) and click on Integrations.
- Within the product's Integrations area, click the Add Integration button.
- A dropdown menu will appear. Choose LearnDash from the list.
- You will now be taken to the feed configuration screen, specifically for this product, where you can define the enrollment rule (explained in the next section).
Configuring the Feed Settings
Once you add a feed (either globally or per-product), you will see the configuration screen.
Here’s what each setting does:
- Feed Title: Give your rule a clear name that you'll easily recognize later (e.g., "Enroll in Learn Python Course" or "Add Subscribers to Student Group").
- Add to Courses: Use the dropdown menu to select the LearnDash courses you want to enroll the user in when this rule runs.
- Add to LearnDash Groups: Similarly, select any LearnDash group(s) you want to add the user to.
- Remove from selected Courses/Groups on Refund or Subscription Access Expiration: This box is checked by default. With it checked, FluentCart unenrolls the customer from the selected courses and groups when the order is fully refunded or canceled, or when the subscription's paid access expires. Canceling a subscription does not remove access right away; access ends when the paid period runs out. If you uncheck it, an expired subscription blocks the course without removing the enrollment, so the student's progress is kept and access returns if they renew. In that case, add Subscription Expired / End of Access Validity to Event Trigger so the block is applied.
- Event Trigger: Select the FluentCart action from the dropdown that runs this rule. For course access after purchase, you can use
Order Paid (Payment / Subscription). Other order and subscription triggers are available for different needs. - Run on Selected Variations Only (Available for Product-Specific Feeds Only): If the product has different variations (e.g., "Basic Access," "Premium Access"), you can use this dropdown to make the rule run only when a specific variation is purchased. Leave empty to apply to all variations.
- Enable this Integration: Make sure this toggle at the top right is switched ON (blue) to make the rule active.
Click Create LearnDash Feed to save your rule.
How Course Expiry Works
You don't need to turn anything on. When the feed enrolls a customer, FluentCart sets the LearnDash course expiry automatically:
- If the order has a subscription, access lasts until the subscription's next billing date.
- If there is no subscription but the order has a license, access lasts until the license expiry date.
- If there is neither (a one-time purchase), no expiry is set.
- When a subscription finishes all its installments, the expiry is removed and access becomes permanent.
To move the expiry forward each time a subscription renews, also select Subscription Renewed in Event Trigger. On a renewal, FluentCart only extends the expiry and clears any block; it does not re-enroll the student.
Use Case Example: Selling a Course Bundle
Let's illustrate how product-specific feeds make selling multiple courses easy. Imagine you offer two LearnDash courses, sold via three FluentCart products:
- FluentCart Product 1: "Beginner Photography Course"
- FluentCart Product 2: "Advanced Editing Masterclass"
- FluentCart Product 3: "Photography Bundle" (includes access to both courses)
Here’s how you would set up the feeds:
- Inside "Beginner Photography Course" Product: Add a LearnDash feed. In "Add to Courses," select only the "Beginner Photography" LearnDash course. Set Trigger to Order Paid.
- Inside "Photography Bundle" Product: Add a LearnDash feed. In "Add to Courses," select both the "Beginner Photography" AND the "Advanced Editing" LearnDash courses. Set Trigger to Order Paid.
With these simple, product-specific rules, FluentCart automatically handles the correct enrollment for every purchase, ensuring your students get exactly what they paid for instantly.
Use Case Example: Time-Limited Membership Course
If you sell course access as a yearly subscription, FluentCart keeps LearnDash and your billing in sync:
- Create a subscription product (e.g., "Annual Photography Membership") in FluentCart.
- On the product, add a LearnDash feed and select the courses included in the membership.
- Set Event Trigger to Order Paid (Payment / Subscription) and Subscription Renewed.
- Leave Remove from selected Courses/Groups on Refund or Subscription Access Expiration checked.
When a customer subscribes, LearnDash gives them access until the subscription's next billing date. Each renewal moves that date forward. If they cancel, they keep access until the period they paid for ends.
