Recover Abandoned Checkouts
Plenty of shoppers type their email at checkout, then leave to compare prices or find their card. Easy Digital Downloads forgets them. Getting them back usually means another plugin, often one that grabs the email before anyone agreed to hear from you.
Checkout Recovery emails shoppers who started a checkout and left. It works on the EDD checkout page and the EDD Checkout block. It captures an email only with consent or under a legitimate-interest notice you choose, and sends one to three reminders. Each reminder has a signed link that refills the cart and opens checkout, and the last one can carry a one-use discount code. A report shows how many came back and what they paid.
Turn On Checkout Recovery
- Open Stackless → Dashboard and turn on Checkout Recovery. It’s in the Checkout group.
- Go to Stackless → Settings → Checkout Recovery and choose a Lawful basis.
- Set the reminders, the subject and the discount, then save.
Results show under Stackless → Checkout recovery.
Choose a Lawful Basis
Lawful basis decides when an email may be captured:
- Consent: a checkbox the shopper ticks: the default. A checkbox with your Checkbox text, or “Email me a reminder if I do not finish my order”. Nothing is captured until it’s ticked.
- Legitimate interest: a notice under the email (check this is allowed where you sell): the email is captured as soon as it’s typed. Your Notice text explains why, or the default: “If you leave before finishing, we may email you a reminder about your cart. Every email has a one-click unsubscribe link.”
The checkbox or the notice sits right under the email field, on the checkout page and the Checkout block alike. If a shopper unticks the box before the first reminder goes out, their captured checkout is deleted. Legitimate interest isn’t accepted for marketing email everywhere, so check the rules where you sell before you choose it.
When a Checkout Is Captured
Capture starts when a shopper with items in the cart types a valid email at checkout. The checkout is saved with the email, first name, cart items and total, and kept up to date as the cart changes. Stackless never captures:
- An empty cart, or an email that isn’t valid.
- An address that unsubscribed from cart reminders.
- A shopper who didn’t tick the box, when the basis is consent.
- Internal and test addresses on the Extra Enhancements internal list, while its Don’t run integrations box is ticked, which is the default.
- A cart that pays an invoice, a renewal or a plan switch. Those carts already belong to an order, so the checkbox doesn’t show either.
A cart that never reaches checkout isn’t tracked, because there’s no email to remind.
Set the Reminders
| Setting | Default | What it does |
|---|---|---|
| Reminders | 2 | How many emails a left checkout gets: 1, 2 or 3. |
| First reminder after (hours) | 1 | Counted from the last change at checkout. |
| Second reminder after (hours) | 24 | Counted from the reminder before it. |
| Third reminder after (hours) | 72 | Counted from the second reminder. |
| Email subject | You left something in your cart | The subject of every reminder. |
Each delay can be from 15 minutes (0.25) to 720 hours. Reminders run through Action Scheduler. Before each one goes out, Stackless looks for an order from that email placed since the checkout was captured, whether complete, pending, processing or on hold, and stops if it finds one.
The reminder is the Abandoned checkout reminder email on Stackless → Emails, wrapped in your EDD email template. You can switch it off there or change its subject and heading. A subject saved there wins over the module’s Email subject. The default heading is “Still thinking it over?”, and {first_name} and {site_title} work in both.
Each reminder greets the shopper by first name, lists the cart items with quantities and has a Finish my order button. The footer says prices are checked again when they return, next to a Stop these reminders link.
Add a Discount to the Last Reminder
Discount in the last reminder can be No discount (the default), Percentage off or Amount off the cart. Discount amount is a percent or an amount in your store currency, 10 by default. Discount valid for (days) runs from 1 to 90, with 7 as the default.
- Each checkout gets its own EDD discount code starting with BACK-, made when the last reminder goes out. It’s named “Abandoned checkout reminder #” and the checkout’s number.
- The code works once, and only with the shopper’s email. Anyone else gets “This discount only works with the email address it was sent to.”
- The email shows the discount and the code, and the Finish my order link applies it.
- The subject of that reminder gets “(and a little thank-you)” added.
- Unused codes are deleted once they expire.
The Finish My Order Link
The button opens a signed link that refills the cart with what the shopper left and goes straight to checkout, with the discount applied. For a guest whose checkout email is empty, the captured email and first name are filled in.
- With Buy Links on, the link goes through a signed Buy Link, which replaces whatever is in the cart. That Buy Link is made when the shopper clicks and works for 7 days.
- With Buy Links off, Stackless empties the cart and adds the saved items itself. Downloads that are no longer published or purchasable are skipped. A price option that’s gone falls back to the default price.
- Prices come from your store when the shopper returns, not from the email.
- A link that was changed, or one for a checkout that’s been deleted, opens the checkout page.
Unsubscribe
Every reminder has a Stop these reminders link and a List-Unsubscribe header. The link opens a page that asks “Stop all cart reminder emails to this address?” with an Unsubscribe button. Only the button unsubscribes, so mail scanners that open links don’t unsubscribe anyone.
Unsubscribing stops every open checkout for that address, and the address is never captured again. The unsubscribe is kept after the retention period ends.
Read the Results
Stackless → Checkout recovery shows the last 30 days:
- Captured: checkouts with an email.
- Reminded: checkouts that got at least one reminder.
- Recovered orders: reminded checkouts that came back and paid.
- Recovery rate: recovered divided by reminded.
- Recovered revenue: what recovered orders paid, in your store currency.
An order placed after a reminder, or from a reminder link, counts as recovered. An order placed before any reminder went out shows as Ordered without a reminder and isn’t counted. Revenue is counted once, when the order is complete. An order in another currency is converted at the rate when it’s paid.
Filters show All, In checkout, Reminded, Recovered, Ordered without a reminder and Unsubscribed. The table lists the 50 newest checkouts with the email and its basis, the cart, the status, reminders sent, last activity and the order. Delete removes a checkout and stops its reminders.
Viewing the screen needs the view_shop_reports capability. Deleting a checkout needs edit_shop_payments.
Send Reminders From FluentCRM
With the FluentCRM module on, FluentCRM automations get two triggers:
- Checkout abandoned (Stackless): a captured checkout reached its first reminder without an order.
- Checkout recovered (Stackless): a reminded checkout came back and its order was paid.
To send the emails from FluentCRM, set Who sends the reminders to My FluentCRM automation (Stackless only tracks and reports). Stackless then sends nothing, but still steps through the schedule, so the triggers fire, the last-reminder discount is still made and the report keeps working. The default, Stackless (EDD emails), sends the reminders itself.
In those emails, these smart codes fill in the checkout:
{{stackless_edd_checkout.recover_url}}: the signed Finish my order link. It stays empty once the checkout became an order, so a late step never links a finished cart.{{stackless_edd_checkout.cart_items}}: the downloads in the cart, with quantities.{{stackless_edd_checkout.cart_total}}: the cart total.
In a Checkout abandoned or Checkout recovered automation they describe the checkout that started it. Anywhere else they describe the contact’s newest open checkout.
Privacy
No outside service is used. Captured checkouts are stored in your database, in {prefix}stackless_edd_checkout_recovery: the email, first name, account if signed in, the basis, cart items and total, currency, reminders sent, any discount code and the order.
- The visitor is recognized by a random token in the EDD session, stored only as a one-way hash.
- Keep checkouts for (days): 60 by default, from 7 to 365. Older checkouts are deleted once a day. Unsubscribes are kept so nobody is emailed again.
- Tools → Export Personal Data and Tools → Erase Personal Data include a Checkout recovery group.
- Erasing an address removes its checkouts and its unsubscribe, and cancels pending reminders. Unused reminder discounts for it are deleted, and used ones lose the address.
Limits
- Reminders are only emailed from your live store. On a copy, such as staging, they wait and aren’t sent, and the Checkout recovery screen says so.
- On the Checkout block, signed-in customers whose details are complete don’t see the email field, so there’s no checkbox for them. With consent they aren’t captured. With legitimate interest they’re captured with their account email.
- A pending order for the address stops the reminders. A shopper who left at an off-site payment page gets EDD’s own pending payment handling instead.
- The link restores downloads, price options and quantities, up to 20 cart lines. Other choices on a line, such as add-on selections, aren’t restored.
- FluentCRM has no smart code for the discount code itself. The restore link still applies it once the last reminder step has made it.
- Before the shopper types an email, the reminder code is accepted. EDD checks it against the email again when the order is placed.
For Developers
stackless_edd_checkout_recovery_abandoned runs once per checkout, when its first reminder is due. stackless_edd_checkout_recovery_recovered runs when a reminded checkout’s order is paid:
add_action('stackless_edd_checkout_recovery_abandoned', function ($row) {
// $row['email'], $row['first_name'], $row['cart'], $row['cart_total'], $row['currency']
});
add_action('stackless_edd_checkout_recovery_recovered', function ($row, $order_id) {
edd_add_note([
'object_id' => $order_id,
'object_type' => 'order',
'content' => 'Came back from a cart reminder.',
]);
}, 10, 2);
To change the reminder body, copy templates/checkout_recovery/emails/reminder.php from the plugin to stackless-edd/checkout_recovery/emails/reminder.php in your theme.