=== SaleSaver ===
Contributors: skyminds
Tags: woocommerce, order recovery, failed orders, cart abandonment, salesaver
Requires at least: 5.8
Tested up to: 7.0
WC tested up to: 11.0
Requires PHP: 8.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

SaleSaver sends recovery emails to customers with failed orders to increase conversions and reduce cart abandonment.

== Description ==

SaleSaver helps you recover lost sales by automatically sending recovery emails to customers whose orders failed during checkout. This powerful WooCommerce extension gives you the tools to re-engage customers and complete their purchases.

**Key Features:**

* Custom email template integrated with WooCommerce email system
* Send recovery emails to customers with failed orders
* Bulk email sending from admin interface
* Duplicate order detection to avoid spamming customers
* Customizable email subject, heading, and content
* Both HTML and plain text email formats
* Order management tools (bulk delete failed orders)
* Tracks last recovery email sent timestamp and count per order
* Prevents duplicate sends — already-emailed orders are skipped automatically
* Full WooCommerce email settings integration

**How It Works:**

1. When an order fails during checkout, it's marked as "failed" in WooCommerce
2. Navigate to SaleSaver in your WordPress admin sidebar
3. View all failed orders with customer details
4. Select specific orders or send to all failed orders
5. Customers receive a recovery email with their order details and a direct link to complete payment

**Perfect For:**

* Recovering failed payment transactions
* Reducing cart abandonment
* Increasing conversion rates
* Re-engaging customers who experienced checkout issues

== Installation ==

1. Upload the `failed-order-recovery` folder to the `/wp-content/plugins/` directory (folder name will be updated in a future release)
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Make sure WooCommerce is installed and activated
4. Configure email settings at WooCommerce → Settings → Emails → SaleSaver Recovery Email
5. Send recovery emails from SaleSaver in the admin sidebar

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes, WooCommerce must be installed and activated for this plugin to work.

= Can I customize the email template? =

Yes! You can customize the email subject, heading, and additional content from WooCommerce → Settings → Emails → SaleSaver Recovery Email. For advanced customization, you can override the template files in your theme.

= How do I override the email template? =

Copy the template files from `plugins/failed-order-recovery/templates/emails/` to your theme folder at `your-theme/woocommerce/emails/` and customise as needed.

= Will this send multiple emails to the same customer? =

SaleSaver highlights duplicate orders (same email address) so you can avoid sending multiple emails. Use the "Select Duplicates Only" button to manage these. Additionally, orders that have already received a recovery email are automatically skipped on subsequent runs.

= Can I schedule emails to send automatically? =

The current version requires manual sending from the admin interface. Automatic scheduling may be added in a future version.

= Does this track which orders received recovery emails? =

Yes. SaleSaver records the send timestamp and send count per order (visible in the "Last Sent" column on the SaleSaver page). An order note is also added for audit purposes.

= What happens to plugin data when I uninstall? =

The plugin will clean up its settings when uninstalled. Order notes are preserved by default to maintain order history.

== Screenshots ==

1. Admin interface showing failed orders with duplicate detection
2. Email settings in WooCommerce → Settings → Emails
3. Recovery email template (HTML version)
4. Order selection and bulk actions

== Changelog ==

= 1.0.0 =
* Initial release
* Custom WooCommerce email integration
* Bulk email sending functionality
* Duplicate order detection
* Admin interface for managing failed orders
* HTML and plain text email templates
* Customizable email settings
* Order note tracking

== Upgrade Notice ==

= 1.0.0 =
Initial release of SaleSaver.

== Additional Information ==

**Support:** For support, please visit https://mattbiscay.com

**Privacy:** This plugin does not collect or store any customer data beyond what WooCommerce already stores. Recovery emails are sent using your existing WordPress email system.

**Compatibility:** Tested with WooCommerce 11.0 and WordPress 6.9+