Skip to content
Learnomy
Get Learnomy Pro

Cart

Let buyers add several courses to a cart and pay for them together: one checkout, one coupon, one payment. The cart is off by default.

Turning it on#

Go to Learnomy > Settings > Payments and switch on Enable the cart in the Cart card, then save.

With the cart on, a course page shows Add to cart under Buy now. Buy now works exactly as before, for one course. Add to cart only appears when the visitor could buy that course in a cart: it is hidden for a course they already have, a free course, a members-only course and a subscription-priced course.

What the buyer sees#

  1. Add to cart on a course page. The button changes to In your cart, and a message offers View cart. If the course cannot be added (for example they still need to finish a prerequisite), the message says why.
  2. The cart page is the checkout with every course listed. Each course has a remove button. A course that can no longer be bought (it was unpublished, or the buyer enrolled another way) is shown with the reason, and the buyer removes it before paying.
  3. One coupon applies to every course it covers. A percentage coupon takes its percentage off each covered course. A fixed-amount coupon is taken off once and shared across the covered courses by price, so a 10.00 coupon on courses of 50, 30 and 20 takes 5, 3 and 2.
  4. Tax is worked out on the cart total, the same rate as a single purchase.
  5. One payment through Stripe, PayPal or the test gateway. The buyer is enrolled in every course, gets one receipt, and the thank-you page lists every course.

A member's cart is kept on their account, so it follows them to another device. A guest's cart is kept in their browser (when guest checkout is on) and moves into their account when they log in. A course the member gets in any other way leaves their cart. A cart holds up to 20 courses.

What always checks out on its own#

  • Subscriptions: a subscription-priced course and every membership plan are bought on their own.
  • Learning paths, gifts and Learning Space seats are bought from their own pages.

WooCommerce#

When WooCommerce is your payment route, the WooCommerce cart is the cart. Learnomy's cart is not shown; Buy now adds the course to the WooCommerce cart beside anything already there (an ebook, another course), and the buyer pays for everything in one WooCommerce order. Each course in the order is its own sale in Learnomy, refunded from the WooCommerce order. A subscription still checks out on its own: if the WooCommerce cart holds anything else, the buyer is asked to finish or empty it first.

How it is recorded#

Each course in a cart is its own transaction, so earnings, reports and refunds work per course. The rows of one payment share a payment reference: the Transactions list shows "Item 1 of 3 in one payment", and the transaction page lists the courses paid together. The buyer's Billing page shows each course with its own receipt. In Pro analytics, a cart counts as one order.

Refunds: see Refunds on a cart.

For developers#

Any payment gateway sells a cart with no cart code of its own; see Selling a cart. The REST routes are GET/PUT /learnomy/v1/cart, POST /learnomy/v1/cart/items, DELETE /learnomy/v1/cart/items/{course_id}, and POST /learnomy/v1/checkout with course_ids. Every cart route answers 404 while the cart is off.