=== Failed Order Rescue for WooCommerce ===
Contributors: aitool
Tags: woocommerce, failed order, pending payment, order recovery, ecommerce
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 0.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Recover failed and pending WooCommerce orders with payment-link emails, automation, coupons, reporting, and export tools.

== Description ==

Failed Order Rescue for WooCommerce helps store owners recover orders that reached checkout but did not complete payment.

The plugin focuses on customers with high purchase intent: they already created an order, selected products, and reached the payment step.

= Free features =

* Dashboard for failed and pending WooCommerce orders.
* Lost revenue summary for the last 30 days.
* Manual recovery email with the WooCommerce payment link.
* Customizable recovery email subject, heading, and body.
* Payment method visibility for easier troubleshooting.
* Recovered revenue tracking when an order moves to processing or completed.
* Ignore orders that should not be followed up.
* HPOS compatibility declaration.

= Pro features =

This Pro package is built for store owners who want automated recovery workflows. It uses Freemius for checkout, subscriptions, license activation, trial handling, and premium updates.

Pro features:

* Automated recovery email sequence for failed and pending orders.
* Custom email timing, such as 30 minutes, 6 hours, and 24 hours after payment failure.
* Payment-gateway-specific recovery rules.
* Automatic recovery coupons for selected order values or payment methods.
* High-value failed order alerts for store admins.
* Duplicate retry detection to stop reminders when the customer completes a replacement order.
* Recovered revenue reports and weekly admin summaries.
* CSV export for failed, pending, ignored, and recovered orders.

Freemius licensing gates Pro features so they are only available with a valid Pro license or active trial.

= Freemius setup =

Before distributing this Pro package:

1. Create a Freemius product for `failed-order-rescue-for-woocommerce`.
2. Add a Pro plan with a 1-site monthly license.
3. Set pricing to $5/month/site.
4. Enable a 7-day trial, requiring payment details if you want automatic billing after trial.
5. Replace `FORD_FREEMIUS_ID` and `FORD_FREEMIUS_PUBLIC_KEY` in `failed-order-rescue-for-woocommerce.php` with the values from the Freemius SDK integration snippet.
6. Confirm the `freemius/` SDK folder is included in the Pro ZIP.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the Plugins screen in WordPress.
3. Make sure WooCommerce is active.
4. Go to WooCommerce > Failed Order Rescue.
5. Review recoverable orders and send recovery emails.

== Frequently Asked Questions ==

= Does this replace abandoned cart recovery? =

No. Abandoned cart recovery targets shoppers before an order exists. This plugin targets failed, pending, or cancelled WooCommerce orders after checkout has already created an order.

= Does it send emails automatically? =

Yes. The Pro version can send up to three automated recovery emails using configurable timing.

= Is there a Pro version? =

This package is the Pro version. The WordPress.org version remains available as the free manual recovery version.

= How will Pro licensing work? =

The Pro version uses Freemius to manage checkout, subscriptions, license activation, trials, and premium updates. Pro features are enabled only when a valid Pro license or active trial is available.

= Is it compatible with WooCommerce HPOS? =

Yes. The plugin declares compatibility with WooCommerce custom order tables and uses WooCommerce order APIs.

= Does it collect external data? =

The Pro version uses Freemius for licensing, subscriptions, trials, and premium updates. Recovery data stays inside WordPress/WooCommerce unless the site owner separately exports it.

== Changelog ==

= 0.2.0 =

* Added Pro automation, recovery coupons, high-value alerts, reports, CSV export, and Freemius licensing.

= 0.1.0 =

* Initial MVP release.
