=== NaveenCodes Smart Coupon Generator for WooCommerce ===
Contributors: shinu1503
Tags: woocommerce, coupons, bulk coupons, smart coupons, csv export
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.2.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Advanced bulk coupon generation, smart rules, history, exports, and premium admin UI for WooCommerce.

== Description ==

NaveenCodes Smart Coupon Generator for WooCommerce adds a premium coupon management dashboard inside WooCommerce. Generate large coupon batches, apply campaign settings, add smart conditions, review coupon history, export CSV files, copy codes, and manage batches with quick actions.

== Features ==

* Quick-start campaign templates (Diwali Sale, Flash Sale, Welcome Offer, Weekend Deal) that pre-fill the form in one click.
* Bulk generate 10, 50, 100, or 500 coupons.
* Random coupon codes with custom length, prefix, suffix, and pattern support such as TTS-XXXXXX.
* Duplicate prevention against existing WooCommerce coupon codes.
* Fixed cart and percentage discounts.
* Usage limits, expiry date, min/max spend, and individual-use settings.
* Smart rules for specific product IDs, product categories, weekdays, and first-time customers.
* Generated coupon history with search, status filter, bulk delete, and status badges.
* CSV export, downloadable list, and copy-all-codes action.
* Batch quick actions for regenerate, duplicate, disable, and delete.
* Lightweight implementation using WooCommerce CRUD.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin from the WordPress Plugins screen.
3. Make sure WooCommerce is active.
4. Go to WooCommerce > Smart Coupons.

== Security ==

All admin write actions require the `manage_woocommerce` capability and nonce validation. User input is sanitized before use and output is escaped in the admin interface.

== Screenshots ==

1. Smart Coupon Campaign Manager dashboard — bulk generator with discount, limits and code patterns, recent batches, and coupon history in one focused screen.
2. Smart Rules — restrict coupons by specific products, categories, weekdays, or first-time customers only.
3. Coupon history with search, status badges, CSV export, copy-all codes, and bulk actions.

== Changelog ==

= 1.2.2 =
* Added: Review request notice — shown after 7 days of active use, with options to review on WordPress.org, mark as already reviewed, or snooze for 14 days. Only one NaveenCodes notice appears per day across all plugins.

= 1.2.1 =
* Added: Send coupon to multiple recipients at once — enter comma-separated addresses (e.g. alice@example.com, bob@example.com) and each receives the coupon individually.
* Added: All sent recipient emails are stored and shown in the "Sent to" column — new addresses append rather than overwrite.
* Added: Info note in the Quick Actions card explaining how the Send button works.

= 1.2.0 =
* Added: "Send" button on every coupon row — enter a recipient email and the coupon code is delivered instantly via wp_mail with discount and expiry details included.
* Added: "Sent to" column in coupon history — shows the email address the code was sent to at a glance.
* Added: Expiry reminder emails — coupons with a recipient email address automatically receive a reminder 3 days before expiry (sent once per coupon via WP-Cron).

= 1.1.1 =
* Fixed: Plugin URI updated to the WordPress.org plugin page (was pointing to dev site).

= 1.1.0 =
* Added: Campaign preset templates — Diwali Sale, Flash Sale, Welcome Offer, Weekend Deal. One click fills the entire form.

= 1.0.1 =
* Improved: Coupon History filter bar now sits on a single line (search, status, filter).
* Added: Per-coupon row actions in history - Disable/Enable and Delete for each coupon.
* Added: A small tribute in memory of Maa.

= 1.0.0 =
* Added: Bulk coupon generator with pattern, prefix, suffix, and duplicate prevention.
* Added: Coupon settings for discount, usage limits, expiry, spend limits, and individual use.
* Added: Smart rules for products, categories, weekdays, and first-time users.
* Added: Coupon history, search, filters, CSV export, copy all codes, and batch actions.
* Added: Premium WooCommerce admin dashboard UI.
