=== Coupons and Discounts for Woocommerce ===
Contributors: milkan2002
Tags: coupons, WooCommerce, discounts, sale, price
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.3
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Run store-wide and category sales with smart coupon handling, new-user-only coupons and a bulk price adjustment tool.

== Description ==
Coupons and Discounts for Woocommerce (Coupandi) helps you run promotions without touching your product prices one by one.

**Store-Wide Sales**
Run a global sale with a configurable discount percentage, start and end dates, a sale name and a custom label shown to customers. Prices, sale badges and discount labels update automatically — and revert automatically when the sale ends.

**Category Sales**
Apply different discount percentages to specific product categories, each with its own optional date range. Customers always get the best available discount: when a category discount is bigger than the global sale, the category discount wins.

**Smart Coupon Handling**
Decide what happens to coupons during a sale. Either block them completely, or allow only coupons that give a bigger discount than the running sale — so promotions never stack by accident. Applying a coupon also removes the Free Shipping method (unless the coupon itself allows free shipping), preventing double discounts.

**New-User-Only Coupons**
Restrict any WooCommerce coupon to logged-in customers with a custom rejection message — perfect for welcome discounts.

**Bulk Price Adjustment**
Increase or decrease all regular prices by a percentage, with a preview before applying, batched processing that won't time out on large catalogs, and the option to skip selected products.

= Coupandi Pro =
Need more? [Coupandi Pro](https://mtcodes.com/) adds:

* Club and Merchant pricing tiers per user (B2B/wholesale)
* Per-user percentage discounts and exact product prices
* Private categories — hide categories and products from selected users
* Newsletter campaigns — tokenized links with campaign pricing and analytics
* Price analysis — compare revenue across pricing schemes
* Bulk adjustment of club and merchant prices
* Unlimited category sales

== Installation ==
1. Upload the plugin through **Plugins → Add New → Upload Plugin**, or install it from the WordPress.org plugin directory.
2. Activate the plugin. WooCommerce must be installed and active.
3. Go to **Coupandi → Sale Configuration** to set up your first sale.
4. Optional: add category discounts under **Coupandi → Category Sales** (up to 3 in the free version).
5. Optional: mark any coupon as "New User Only" on the coupon edit screen.

== Frequently Asked Questions ==

= Does the plugin change my product prices in the database? =
Sales are applied dynamically — your stored prices are untouched and everything reverts when the sale ends. Only the Bulk Price Adjustment tool permanently changes stored prices, and it warns you and shows a preview before doing so.

= Can customers combine coupons with the sale? =
You choose: block all coupons during a sale, or allow only coupons that beat the sale discount. Discounts never stack.

= What is the difference between the free and Pro version? =
The free version covers store-wide and category sales, coupon rules and bulk regular-price adjustment. Pro adds per-user pricing tiers (Club/Merchant), private categories, newsletter campaign pricing with analytics, price analysis tools and unlimited category sales.

== Screenshots ==
1. Sale configuration screen
2. Category sales with custom discount ranges
3. Coupon rules and new-user-only restriction settings
4. Bulk price adjustment tool with preview

== Changelog ==
= 1.0.2 =
* Bug fixes, speed improvements, new functions added

= 1.0.1 =
* Bug fixes, speed improvements

= 1.0.0 =
* First release. Store-wide sales, category sales, smart coupon handling, new-user-only coupons, bulk price adjustment tool.