|
/ Documentation /Cart Abandonment/ Using Unique Recovery Links / One-Click Cart Recovery

Using Unique Recovery Links / One-Click Cart Recovery

The Cart Abandonment Recovery plugin automatically generates a unique recovery link for every abandoned cart. When a customer clicks this link in a recovery email, their cart is instantly restored and they are taken directly to the checkout page — no need to search for items or re-add products.

This guide explains how the recovery link works, how to add it to your email templates, and how to customize the checkout experience customers see when they click through.

How It Works

When a cart is abandoned, the plugin captures the cart session and assigns it a unique token. This token is embedded into a personalized checkout URL. When the customer clicks the link:

  • Their original cart items are automatically restored.
  • Any coupon code configured in the email template is applied automatically.
  • The customer lands directly on the checkout page, ready to complete the purchase.

This is commonly referred to as One-Click Cart Recovery — the customer does not need to take any manual steps to rebuild their cart.

Adding the Recovery Link to Your Email Template

To include the recovery link in a recovery email, use the {{cart.checkout_url}} shortcode in your email template.

To add the link:

1. Go to WooCommerce > Cart Abandonment > Follow Up Templates.

Follow Up Templates

2. Open an existing template or create a new one.

email template fields

3. In the email body, insert the shortcode {{cart.checkout_url}} wherever you want the recovery link to appear.

cart abandonment recovery shortcode

4. Save your template.

Note

The {{cart.checkout_url}} shortcode generates a complete, unique URL for each customer. You can use it as a plain text link or wrap it in a button using your email editor’s link/button tools.

Using the Shortcode as a Button

For higher click-through rates, it is recommended to display the recovery link as a button. The email editor allows you to apply button styling to a link using HTML editor. Simply use {{cart.checkout_url}} as the URL target of a button element.

<a href="{{cart.checkout_url}}" style="display:inline-block;background-color:#2271b1;color:#ffffff;padding:12px 24px;text-decoration:none;border-radius:4px;font-weight:bold;">Complete Your Purchase</a>

Example display text for the button:

  • Complete Your Purchase
  • Return to Your Cart
  • Claim Your Discount

Combining the Recovery Link with a Coupon

You can pair the {{cart.checkout_url}} shortcode with the {{cart.coupon_code}} shortcode to display a discount offer alongside the recovery link. When the customer clicks the checkout URL, the coupon is applied automatically — they do not need to enter the code manually.

Example email copy:

Hi {{customer.firstname}},You left something behind! Use code {{cart.coupon_code}} to get a discount — it’s applied automatically when you click the link below.{{cart.checkout_url}}

Note

To generate a coupon automatically in recovery emails, you must configure a coupon in the email template settings. See the Configuring Cart Abandonment Recovery Settings documentation for more details.

Available Shortcodes for Recovery Emails

The following shortcodes can be used in any recovery email template to personalize the message and include the recovery link.

ShortcodeDescription
{{cart.checkout_url}}The unique recovery link that restores the customer’s cart and redirects them to checkout.
{{cart.coupon_code}}The coupon code automatically applied when the customer clicks the recovery link.
{{customer.firstname}}The customer’s first name.
{{customer.lastname}}The customer’s last name.
{{customer.fullname}}The customer’s full name.
{{cart.product.table}}A table showing abandoned products with name, image, quantity, price, and line subtotal.
{{cart.product.names}}A plain-text list of the abandoned product names.
{{cart.abandoned_date}}The date on which the cart was abandoned.
{{cart.unsubscribe}}An unsubscribe link allowing customers to opt out of future recovery emails.
{{admin.firstname}}The shop owner’s or administrator’s name.
{{admin.company}}The shop or company name.
{{site.url}}The main URL of the store.

What Customers See When They Click the Link

When a customer clicks the {{cart.checkout_url}} link in a recovery email:

  • They are taken directly to the WooCommerce checkout page.
  • Their previously abandoned cart items are pre-loaded.
  • If a coupon was configured, it is automatically applied to the order.
  • All checkout fields are pre-filled if the customer had previously entered their details.

The customer can then complete the purchase in a single step — no cart rebuilding required.

Link Expiry and Security

Each recovery link contains a unique session token tied to the specific abandoned cart. This means:

  • Each link is unique to one customer and one cart session.
  • A link cannot be reused across different customers.
  • Once the cart is recovered (i.e., the order is completed), no further recovery emails are sent for that session.

Note

If a customer clicks the recovery link but does not complete checkout, the cart remains in the abandoned state and future scheduled emails (if configured) will continue to be sent.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support