=== Quantiva Discount Rules for WooCommerce ===
Contributors: usamakhalid14
Tags: woocommerce, discount, bulk-discount, dynamic-pricing, sale
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create storewide, product, category, bulk, and cart discounts with multiple exclude rules. Lightweight, fully free, and easy to manage.

== Description ==

Quantiva Discount Rules for WooCommerce lets you run quantity discounts, category sales, and cart-total offers without a complicated rules engine.

Every feature in this plugin is free. There is no paid add-on, license key, or locked screen.

= What you can do =

* Percentage or fixed-amount discounts
* Storewide, product, or category targeting
* Bulk / quantity tiers (for example, buy 5–10 save 5%, buy 11–20 save 10%)
* Cart or order-total discounts (for example, spend $1000 and get 10% off)
* Start and end dates
* Limit a rule to selected user roles, including guests
* Multiple exclude rules for products, categories, and items already on sale
* A bulk pricing table on product pages
* Sale badge on the shop and product pages
* Strikethrough prices, a You save amount on product pages, and a You saved total on cart and checkout
* Order, customer, and savings stats for each discount rule

= How it works =

Go to Quantiva → Dashboard to create a bulk, percentage, fixed, or cart discount. You can also open Quantiva → Discount Rules and add a rule there.

* **Product prices** change each matching item (including bulk tiers based on that line’s quantity)
* **Cart total** adds one discount to the order as a fee

If two product rules match the same item, the lower priority number wins. If those numbers are equal, the larger discount wins. A product-price rule and a cart-total rule may both apply.

WooCommerce coupons keep working. A coupon and a Quantiva rule can both apply unless you turn the rule off.

= Display settings =

Quantiva → Settings controls the bulk table, sale badge, and You saved message. Turning a display option off does not disable the discount itself.

== Screenshots ==

Quantiva Dashboard showing discount statistics and an overview of configured discount rules.
Discount Rules screen for managing and creating discount rules.
General Settings for controlling plugin display options.
Discount Rule detail screen for configuring discount type, targeting, conditions, exclusions, and other rule settings.
Product page showing an applied discount, discounted pricing, savings information, and the bulk pricing table.

== Installation ==

1. Install and activate WooCommerce.
2. Upload the `quantiva-discount-rules-for-woocommerce` folder to `/wp-content/plugins/`, or install the zip from Plugins → Add New → Upload Plugin.
3. Activate Quantiva Discount Rules for WooCommerce.
4. Go to Quantiva → Dashboard and create a bulk quantity rule, or open Discount Rules to manage existing rules.

== Frequently Asked Questions ==

= Does this plugin require a paid upgrade? =

No. All included features are available to every user.

= How do I create a bulk discount? =

Create a rule, set Discount to Bulk / quantity discount, apply it as Product prices, choose products or categories, and add quantity ranges. Example: Min 5 / Max 5 / 10%, then Min 6 / Max 10 / 15%.

= Can I exclude products or categories? =

Yes. Add as many exclude rows as you need. You can exclude specific products, categories, or items that already have a WooCommerce sale price.

= Do discounts work with variable products? =

Yes. Rules that target a parent product also apply to its variations. You can also target or exclude a specific variation.

= Do discounts work with the cart and checkout blocks? =

Product prices and cart fees are applied through WooCommerce totals, so they work with classic and block carts. The You saved message appears on classic totals and, when possible, on block cart pages.

= What should I test after installing? =

* A storewide percentage discount
* A category discount with a product exclude
* A bulk tier table on a simple product
* A variable product with a parent-level rule
* An on-sale product excluded from a rule
* A role-limited rule
* A scheduled rule with start and end dates
* A cart-total discount with a minimum spend
* Cart and checkout with a WooCommerce coupon
* Classic cart and block checkout totals and tax

= How do I get support? =

You can post on the [WordPress.org support forum](https://wordpress.org/support/plugin/quantiva-discount-rules-for-woocommerce/). For faster, direct help, email usamakhalid847@gmail.com.

== Changelog ==

= 1.0.0 =

* Initial release.

== Upgrade Notice ==

= 1.0.0 =

Initial release.
