=== MailPirate for WooCommerce ===
Contributors: mailpirate
Tags: woocommerce, email, abandoned cart, mailpirate, newsletter, forms
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later

Onsite tracking for MailPirate abandoned cart recovery, product events, and signup form embeds.

== Description ==

MailPirate for WooCommerce tracks shopper activity for recovery and journeys:

* **Started Checkout** with full cart contents, totals, coupons, and a **restore-cart** link for emails
* **Added to Cart** (optional)
* **Viewed Product** (optional)
* Identity cookie / session so cart updates work after the shopper is known
* Classic checkout fields and WooCommerce Blocks contact email
* Background retries when the MailPirate API is temporarily unreachable
* Signed cart restore links (works without shared object cache) and coupon re-apply
* **Signup forms** via `[mailpirate_form id="..."]` shortcode or the **MailPirate Form** block (design stays in MailPirate)

== Installation ==

1. Download the plugin ZIP from MailPirate (Connectors page or docs).
2. In WordPress: Plugins → Add New → Upload Plugin.
3. Activate **MailPirate for WooCommerce**.
4. Go to WooCommerce → MailPirate.
5. Paste your Marketing API token and store slug from MailPirate → Settings → API & webhooks.
6. Enable tracking (and optional Added to Cart / Viewed Product) → Save → Test connection.
7. In MailPirate, arm Autopilot → Abandoned cart (or activate the Abandoned cart flow).
8. For signup forms: create a form in MailPirate → Forms, then paste the shortcode or use the Form block.

== Changelog ==

= 1.3.0 =
* Signup form shortcode `[mailpirate_form id="..."]`
* Gutenberg **MailPirate Form** block with live form picker
* Loads MailPirate embed script once per page for multiple form mounts

= 1.2.0 =
* Signed, self-contained cart restore tokens (items + coupons, 14-day expiry)
* Re-apply coupons on cart restore when still valid
* Declare WooCommerce HPOS (custom order tables) compatibility
* Settings help text points to Settings → API & webhooks

= 1.1.0 =
* Cart restore links in Started Checkout events
* Added to Cart + Viewed Product tracking
* Identity cookie/session, Blocks checkout support
* API retries + connection test + debug logging

= 1.0.0 =
* Initial release: Started Checkout tracking with cart line items and checkout URL.
