The Shopping Cart feature in LearnWorlds enhances your learners’ purchasing experience by allowing them to buy multiple products—such as courses, bundles, or programs—in a single transaction. It mirrors the familiar e-commerce workflow, improves conversion rates, supports promotional campaigns, and simplifies purchases.
Why Use the Shopping Cart?
Activating the cart streamlines the buying process and encourages higher-order values by enabling:
- Bulk purchases (e.g., buying three different courses at once).
- Deferred checkouts—users can add items over time and buy later.
Enabling Shopping Cart
To activate or deactivate the cart,
1. Go to E-commerce → Cart & Checkout Flow in your admin dashboard.
2. Under the Cart tab, toggle the Cart switch to enable/disable the functionality.
3. The Mini-cart is automatically enabled alongside the main cart, but can be independently turned off if desired. The mini-cart only functions if the main cart is enabled.
What Changes When the Cart Is Enabled
Once the cart is enabled, learners can purchase multiple products in a single transaction. A floating cart icon becomes visible across all standard pages, providing quick access to the cart and revealing the mini-cart when hovered over or tapped.
The checkout flow varies slightly depending on the product type—paid courses, subscriptions, or free courses
- The course and program “Enroll” buttons are replaced with “Add to Cart” buttons, allowing users to add products to their cart instead of being redirected directly to checkout.
- Subscription-based products are sold individually to give learners the opportunity to review plan details carefully before making a commitment. Instead of being added to the cart, these products display a “Subscribe Now” button, directing users to a dedicated payment page to complete their subscription.
- Free courses are not added to the cart or purchased in the traditional sense. Instead, users click the “Register” button on the course page to be enrolled instantly, bypassing any payment or checkout process.
You can configure where users are redirected after enrolling in a free course by adjusting the settings in the After Purchase tab. For more detailed instructions, you can find additional information here.
Product Type | Cart-Compatible | Button Shown |
Courses | ✔️ | Add to Cart |
Learning Programs | ✔️ | Add to Cart |
Bundle Offers | ✔️ | Add to Cart |
Free Courses | ❌ | Register for free |
Subscription Plans | ❌ | Subscribe Now |
Where the Cart Icon Appears
The floating cart icon appears on all standard pages of your school’s site, giving learners a consistent and convenient way to access their cart. Clicking the icon takes them directly to the /cart page, while hovering over it (or tapping on mobile) displays a mini-cart preview of the items inside.
The icon is intentionally hidden on certain system or restricted pages, including
- /payment
- /thankyou?after_purchase=true
- /cart
- /terms
- /affiliate-program-terms
- /affiliate-registration
- /cookies
- /privacy
- /access-request-rejected
- /access-request-under-review
- /email-verification-pending
- All 2fa pages
- /error
- pages of a funnel
- blog home
- blog articles
- Social
- Inbox
- Profile
- Account
- Dailynews
- Workpad
- People
- Course player
- Program player
Mini-Cart Preview
When the mini cart is enabled, it provides a quick preview of the user's cart without requiring navigation to the full cart page. It appears immediately after an item is added and displays key cart details, including the product image, name, price, quantity, and available actions such as Remove Item, Clear All, Go to Checkout, and View Cart.
The mini cart becomes visible on hover for desktop users and on tap for mobile users, offering a seamless and accessible way to review cart contents at any time.
If the mini-cart is disabled, only a basic confirmation will show when a product is added.
How Cart Works for Logged-In and Logged-Out Users
The cart experience is designed to adapt smoothly to whether a learner is logged in or not, ensuring convenience across all browsing scenarios.
- For logged-out users, the cart remains persistent across browser tabs, allowing them to continue exploring and adding items without losing their selections. If they choose to sign in during the same session, their cart is automatically merged with their account, making the transition seamless.
- For logged-in users, the cart is securely saved, so they can pick up where they left off, even across devices. When a user logs out, the cart is cleared to protect their privacy and ensure a secure shopping experience.
After-Purchase Settings
You can customize where users are redirected after completing a purchase. The destination can differ based on whether they purchase a single product, multiple products, or enroll in a free course. Each scenario allows for a distinct post-enrollment flow. Find more information about how this works here.
Once the enrollment process is complete, users also receive notification emails. By default, the system sends two emails:
- One with details about the purchase
- Another confirming the enrollment
However, you can customize this at any time. To manage these notifications, go to Communication → School Emails and enable or disable the ones you wish to send
Offers
The cart supports both global and product-specific coupon codes, allowing customers to apply discounts before checkout, just like they would on a standard payment page. Shoppers can apply one or multiple coupons, depending on the offers available.
When multiple coupons apply to the same line item, whether they are combined or applied individually depends on the stackability rules set for each offer. For more details on how coupon combinations work, check here.
Important Notes
- The cart widget only works on the /cart page. You cannot embed it elsewhere or copy its code to other pages.
- The /cart page is a system-generated page that cannot be removed or hidden when the shopping cart is active. It’s accessible to both logged-in and logged-out users.
- A product can only be added to the cart once.
- When a user purchases multiple products through the cart, and one of them is paid via installment, a single invoice will initially be issued for all the products. For each subsequent installment payment, a new invoice will be issued.