=== Moby Cart – Abandoned Cart Recovery for WooCommerce ===
Contributors: mobyapp
Tags: abandoned cart, woocommerce, cart recovery, email, coupon
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Recover abandoned WooCommerce carts with branded reminders, a one-click restore link and an optional unique coupon. Consent-first and GDPR-friendly.

== Description ==

Moby Cart reminds your customers about the cart they left behind, only when they agreed to it. When a customer types their email or phone at checkout and ticks the box, the cart is saved. If they don't complete the order, Moby Cart sends up to three reminders with your store's name and logo. When they buy, the sequence stops by itself.

**Features**

* Works with the classic checkout and the block checkout.
* Consent first: a clear notice and an unticked checkbox below the email field. In the EU you can also write to existing customers about similar products (soft opt-in), as the law allows. Outside the EEA you may use a notice-and-opt-out mode where your local law allows it.
* Default sequence at 1 hour, 24 hours and 72 hours, with editable copy, preview and AI suggestions in the Moby panel.
* A restore link that rebuilds the cart (products, variations and quantities) in one click and applies the coupon.
* Optional unique coupon, single use, tied to the customer's email and with an expiry date, only in the 2nd or 3rd message. You choose the discount.
* One-click unsubscribe in every email, shared suppression list, frequency caps and no messages after the customer buys.
* Recovered revenue, recovery rate per message, funnel, weekly report, high-value cart alerts and CSV export in the Moby panel.
* Lightweight: one small script of its own on the checkout page only, no third-party scripts and no cookies of its own (it uses the WooCommerce session).
* Personal data in each cart is deleted automatically after 30 days (configurable).

**How it works**

1. Go to **Settings → Moby Cart** and click **Connect with Moby**.
2. Log in or create a free account. You are sent back to WordPress with your store connected.
3. Review the three reminder messages in the Moby panel and switch them on.

The free plan includes 1 store, 100 recovery emails a month and the first reminder. Paid plans add the 24 h and 72 h reminders, coupons, subject A/B tests and more. See [plans and pricing](https://cart.mobyapp.eu/#precios).

== External services ==

This plugin is a client for the Moby Cart service, operated by Moby (https://www.mobyapp.eu/). An account on that service is required: reminders are sent from there, not from WordPress.

* **Moby Cart API (harpoon.mobyapp.eu).** Only when a customer types their email or phone at checkout and there is a legal basis (the consent box is ticked, they are an existing customer and your settings allow the soft opt-in, or you use the notice mode outside the EEA), the plugin sends the cart to the API: a random cart key, the email and/or phone, the first name, the billing country, the language, whether consent was given and its text, whether the customer has previous orders, the cart products (ID, name, quantity, price, image and link), the total and the currency. If the customer unticks the box, the plugin tells the API to stop. When an order is paid, the plugin sends the order ID, total, currency, coupons used and the cart key (or, if the cart was not captured, only a SHA-256 hash of the email, so that customers who already bought are not contacted). Every request is signed with your store's secret.
* **Restore link.** When a customer opens a reminder link (`?moby_cart=…`), the plugin asks the API for the cart contents to rebuild it.
* **Coupons.** Moby creates the single-use coupons in your store by calling the plugin's REST route `moby-cart/v1/coupon`, signed with your store's secret.
* **Settings.** Twice a day the plugin asks the API for your consent settings and texts.
* **Moby Cart panel (cart.mobyapp.eu).** When you click "Connect with Moby" in the admin, you are taken to the panel with your site address; a one-time code is then exchanged with the API for your store key and secret.

Visitors who don't type their email or phone are never sent to Moby. No cookies are set by the plugin.

Terms of service: https://www.mobyapp.eu/en/terminos
Privacy policy: https://www.mobyapp.eu/en/privacidad
Data processing agreement (GDPR art. 28): https://www.mobyapp.eu/en/encargo-tratamiento
Legal notice: https://www.mobyapp.eu/en/aviso-legal · Cookie policy (what the widget stores, to declare in your own cookie policy): https://www.mobyapp.eu/en/cookies

== Installation ==

1. Install the plugin from **Plugins → Add New** (search for "Moby Cart") and activate it. WooCommerce must be active.
2. Go to **Settings → Moby Cart** and click **Connect with Moby**.
3. Review and switch on your reminders in the Moby panel.

== Frequently Asked Questions ==

= Do I need my customers' consent? =

In Spain and the rest of the EU a cart reminder is a marketing message. You need the customer's prior consent or, for existing customers and similar products, the soft opt-in (art. 21.2 of the Spanish LSSI and the ePrivacy rules). Moby Cart shows an unticked checkbox and records what was accepted and when. You are the data controller; Moby acts as your processor. Mention it in your privacy policy (Settings → Privacy has a suggested text).

= Does it work with the block checkout? =

Yes. The consent box is added below the email field in both the classic and the block checkout.

= Does it set cookies? =

No. It uses the session that WooCommerce already has.

= What happens to the coupons? =

Each coupon is a normal WooCommerce coupon: unique, single use, restricted to the customer's email and with an expiry date. They are kept if you uninstall the plugin.

== Screenshots ==

1. Consent checkbox below the email field at checkout.
2. A reminder email with the products, the total, the coupon and the restore button.
3. Recovered revenue and rate per message in the Moby panel.

== Changelog ==

= 1.0.0 =
* First version: Connect with Moby, consent-first capture in the classic and block checkout, signed events, restore link, unique coupons, automatic updates and Spanish translation.
