Skip to content
weLabsweLabsStorefront Playbook
Live demoQuickstart

Integrations

Cart abandonment recovery

Let Cart Abandonment Recovery for WooCommerce record storefront checkouts and bring shoppers back to a restored cart on the storefront.

Cart Abandonment Recovery for WooCommerce emails shoppers who start checkout but don’t finish. On its own it can’t see a storefront checkout, and its email link would rebuild the cart in WordPress, where the shopper never shops. With this integration, the storefront records each checkout for the plugin, and the email’s link restores the cart on the storefront.

This page covers only what the storefront needs. For the plugin itself (its emails, templates, coupons and reports), follow its own documentation on its WordPress.org page.

Where it shows
The storefront checkout (recording), /cart/recover (the email's link) and /cart/unsubscribe
Configure in
The plugin in WordPress; the Storefront URL in the Companion plugin; WOO_CART_RECOVERY on the storefront
Requires
Cart Abandonment Recovery for WooCommerce, the Companion plugin, WooCommerce mode
  1. The plugin is active, with cart tracking on. Tracking is on by default. If it’s off, the storefront records nothing.
  2. The plugin’s GDPR consent notice is off. The plugin shows that notice from its own script on WordPress’s checkout page, which the storefront never uses. Rather than record shoppers without the notice you switched on, the storefront records nothing while it is on.
  3. The Storefront URL is set in the Companion plugin, under StoreFrontSettingsGeneral. The email links point at the storefront only when it is set. See Connect the storefront.
  4. The storefront has the integration switched on. Whoever deploys the storefront sets WOO_CART_RECOVERY=1 in its configuration and redeploys. See Environment variables.

As soon as a shopper has typed a valid email address at checkout, the storefront sends their progress to the plugin, and again each time they change a field: name, phone, address and order notes. The cart itself is read from the shopper’s real WooCommerce cart, never from what the browser sends, so the totals in the plugin’s reports are genuine.

Recording never gets in the shopper’s way. If it fails, checkout carries on as normal.

The Companion plugin rewrites the plugin’s links so they point at the storefront:

Link Goes to What the shopper sees
The recovery link (“Continue your purchase”) /cart/recover Their cart, rebuilt, with “We’ve restored your cart”.
“Don’t remind me again” /cart/unsubscribe “You’re unsubscribed”. No more reminders for that cart.

The same rewrite applies to the Link to Checkout Page in the plugin’s detailed report, and to the checkout_url the plugin sends to webhooks (for stores that send their reminders through Zapier or similar).

The shopper lands on the cart page, not on checkout, so they can see what came back before paying:

  • Items no longer for sale are skipped, and the cart says how many couldn’t be added.
  • The email’s coupon is applied last. If it’s accepted, the cart names it. If not (already used, expired, or not valid for these items), the cart is still restored and says the discount couldn’t be applied.
  • A link that no longer works (the order was already placed, or the cart can’t be found) shows “This link has expired” on the cart page, and the shopper’s current cart is left as it was.
  • Prices are today’s. The cart is rebuilt from the items, so current prices and stock apply, not those of the original visit.
  • Only checkouts with an email are recorded. A shopper who leaves before typing one can’t be emailed, so there is nothing to record.
  • Nothing changes in the plugin’s admin. Abandoned carts, recovered orders and reports appear there as they would for a WordPress checkout.
Symptom Likely cause Fix
No abandoned carts are recorded WOO_CART_RECOVERY isn’t set on the storefront, the plugin’s tracking is off, or its GDPR consent notice is on. Check the steps in What the storefront needs.
The email link opens WordPress’s checkout The Storefront URL is empty in the Companion plugin. Set it under StoreFront → Settings → General. Emails already sent keep their old link.
The email link says “This link has expired” The order was placed, or the cart’s items no longer exist. Expected; the shopper can shop again from the cart page.
The cart is restored without the discount The coupon was already used, has expired, or doesn’t apply to these items. Check the coupon in Marketing → Coupons; the plugin’s coupons are single-use by design.
Storefront Playbook · Built by weLabsFeaturesFAQTalk to us