=== Kung Woo Discount Code for WooCommerce ===
Contributors: kungwoopanda
Tags: woocommerce, discount, coupon, promo code, marketing
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
WC requires at least: 7.0
WC tested up to: 8.8
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Displays a discount code box on product pages and automatically manages coupons in WooCommerce.

== Description ==

**Kung Woo Discount Code for WooCommerce** is a lightweight, fully automated tool that helps you boost sales by displaying dedicated discount codes directly on single product pages. 

Instead of manually creating coupons in WooCommerce and then figuring out how to display them to your customers, this plugin does both! You simply set up a rule (Discount Code, Percentage, and assigned Product SKUs) and the plugin automatically synchronizes everything with the WooCommerce coupon system.

### Key Features:
* **Automated Coupon Management:** Automatically creates, modifies, and deletes native WooCommerce coupons based on your rules. No more manual coupon setup!
* **Frontend Discount Box:** Beautifully designed discount box displayed on assigned single product pages.
* **1-Click Copy:** Customers can easily copy the promo code to their clipboard with a single click.
* **AJAX SKU Search:** Easily assign products to discount rules using a fast, cached AJAX search in the admin panel.
* **Developer Friendly & Secure:** Built with WordPress best practices, secure nonces, and proper data sanitization.
* **Translation Ready:** Fully compatible with Loco Translate and standard `.pot` files.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/kung-woo-discount-code` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Ensure that WooCommerce is installed and activated.
4. Navigate to **WooCommerce -> Product Discount Codes** in your WordPress dashboard.
5. Start adding your discount rules by entering a promo code, discount percentage, and selecting products by SKU.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
Yes, the plugin requires WooCommerce to be installed and activated. It hooks directly into the native WooCommerce coupon system.

= Are the coupons real WooCommerce coupons? =
Yes! When you create a rule in the plugin's settings, it automatically generates a native percentage-based coupon in WooCommerce and assigns it to the exact products you specified.

= What happens if I delete a rule in the settings? =
The plugin automatically cleans up after itself. If you remove a row in the settings and save, the corresponding WooCommerce coupon is automatically deleted from the database.

= Can I translate this plugin? =
Absolutely. The plugin is 100% translation-ready. You can use Loco Translate or any other PO/MO editor. The text domain is `kung-woo-discount-code`.

== Screenshots ==

1. The admin settings panel where you manage your discount rules.
2. The frontend view of the discount box on a single product page.

== Changelog ==

= 1.0.0 =
* Initial release on WordPress.org.