=== SPP Dynamic Pricing & Discounts ===
Contributors: simpliplugin
Tags: woocommerce, dynamic pricing, bulk discount, quantity discount, tiered pricing
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically apply percentage or flat discounts to WooCommerce products based on bulk levels and quantity rules.

== Description ==

SPP Dynamic Pricing & Discounts lets you reward customers for buying more. Create quantity-based (bulk) pricing rules that automatically apply a percentage or a flat per-unit discount as the cart quantity crosses each tier.

**Key features**

* Percentage or flat (fixed amount per unit) discounts.
* Unlimited quantity tiers (bulk levels) per rule, e.g. 2–5 = 10% off, 6+ = 20% off.
* Target all products, specific products, or specific product categories.
* Optionally combine quantities of all matching items in the cart to reach a tier.
* Rule priority so the correct rule wins when several could apply.
* Automatic bulk pricing table on the product page.
* Applied discount shown under each cart line item.
* Enable/disable rules individually, and a global on/off switch.
* Translation ready, HPOS compatible, and no data left behind on uninstall.

Built by [SimpliPlugin](https://simpliplugin.com).

== Installation ==

1. Ensure WooCommerce 6.0 or higher is installed and active.
2. Upload the `spp-dynamic-pricing-discounts` folder to `/wp-content/plugins/`, or install the plugin through the Plugins screen.
3. Activate the plugin through the "Plugins" screen in WordPress.
4. Go to **Dynamic Pricing → Pricing Rules** to create your first rule.

== Frequently Asked Questions ==

= Does this require WooCommerce? =

Yes. The plugin only runs when WooCommerce 6.0+ is active. A notice is shown otherwise.

= What is the difference between percentage and flat discounts? =

Percentage reduces the unit price by a percent (e.g. 10%). Flat subtracts a fixed amount from each unit (e.g. $5 off per unit).

= How is the discount tier chosen? =

For each cart item the plugin finds the first matching enabled rule (by priority) and then selects the tier whose quantity range contains the item quantity. If "Combine quantities" is on, the total quantity of all matching items is used instead.

= Is the plugin compatible with High-Performance Order Storage (HPOS)? =

Yes.

== Screenshots ==

1. Pricing rules list.
2. Add / edit a rule with quantity tiers.
3. Bulk pricing table on the product page.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
