# Failed order discount

**Contributors:** danhrpr, rosshrpr
**Tags:** WooCommerce, discount codes, coupons, failed orders
**Tested up to:** 6.7
**Stable tag:** 1.0.1
**License:** GPLv2 or later
**License URI:** [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html)  

Fixes the issue in WooCommerce where failed orders prevent discount codes from being reused.

---

## Description

Failed order discount solves the common problem where discount codes cannot be reused after a failed order. This lightweight plugin ensures your customers can apply their discount codes without hassle, even if a previous transaction did not go through successfully.

### Features:
- Automatically resets the "used" status of discount codes on failed orders.
- Simple, single-file solution—no extra configuration required.
- Lightweight and efficient.

This plugin is ideal for WooCommerce store owners looking to improve customer satisfaction and minimize coupon management issues.

---

## Installation

1. Download the plugin ZIP file.
2. Go to your WordPress admin dashboard.
3. Navigate to **Plugins > Add New** and click **Upload Plugin**.
4. Choose the downloaded ZIP file and click **Install Now**.
5. Once installed, click **Activate Plugin**.

That's it! The plugin will automatically handle discount code reuse for failed orders.

---

## Frequently Asked Questions

### Does this plugin have any settings?
No, the plugin works automatically upon activation.

### Will it affect performance?
No, the plugin is lightweight and designed to integrate seamlessly with WooCommerce.

### Is this compatible with custom coupon rules or other coupon-related plugins?
The plugin is designed to work with WooCommerce's default coupon functionality. Compatibility with custom rules or third-party plugins may vary.

---

## Changelog

### 1.0.1
- Changed the readme.

### 1.0.0
- Initial release.

---

## Upgrade Notice

### 1.0.0
Initial version of the plugin.

---

## Support

For support, please contact Wordpress.org.
