=== YeeDiscounts - Dynamic Discounts for WooCommerce ===
Contributors: addonsorg
Tags: woocommerce, dynamic pricing, discounts, bulk discount
Tested up to: 6.9
Stable tag: 1.0.3
WC requires at least: 4.0
WC tested up to: 10.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

YeeDiscounts allows you to create bulk discounts, BOGO deals, cart discounts, and advanced dynamic pricing rules for WooCommerce.

== Description ==

**YeeDiscounts - Dynamic Discounts for WooCommerce** is the ultimate pricing and discount toolkit for your store. Create simple to complex discount rules to boost sales, including Bulk Discounts (Tiered Pricing), Buy X Get X (BOGO), Buy X Get Y, Cart Discounts, and more.

The plugin is designed to be lightweight, easy to use, and fully compatible with **WooCommerce High Performance Order Storage (HPOS)** and modern **Checkout Blocks**.

Document: <https://yeeplugin.github.io/YeeDiscounts/index.html>

### Features

*   **Simple Discounts**: Percentage, Fixed Amount, or Fixed Price adjustments per product.
*   **Bulk Discounts (Tiered Pricing)**: Setup quantity-based discounts (e.g., Buy 5-10 get 5% off, Buy 11+ get 10% off). Display a pricing table on product pages.
*   **Buy X Get X (BOGO)**: Classic Buy One Get One Free/Discounted logic. Supports recursive rules (Buy 2 Get 1, Buy 4 Get 2...).
*   **Buy X Get Y**: Buy a specific product (or category), get a *different* product for free or discounted.
*   **Cart Discounts**: Apply discounts to the entire cart total based on rules. Supports applying as a Coupon or Fee.
*   **Bundle / Set Discounts**: fixed price for a set of items.
*   **Free Shipping**: Conditionally grant free shipping.

### Advanced Conditions

Target your discounts precisely with a wide range of conditions:

*   **Cart Conditions**: Subtotal, Item Quantity, Line Item Count, Weight, Applied Coupons, Payment Method.
*   **Product Conditions**: Specific Products, Categories, Tags, Attributes, SKUs, On-Sale Status.
*   **Customer Conditions**: User Role, Logged-in Status, Email (specific or wildcard).
*   **History Conditions**: First Order, Last Order Amount, Total Spent, Number of Previous Orders.
*   **Geographic**: Shipping/Billing Country, State, City, Zipcode.
*   **Date & Time**: Date range, Time range, Days of the week.

### Frontend Features

*   **Discount Bar**: Display a progress bar or notification message to encourage customers to meet discount conditions (e.g., "Add $20 more to get 10% off").
*   **Bulk Discount Table**: Automatically display tiered pricing tables on product pages.
*   **Sale Badges**: Custom "On Sale" badges with dynamic labels (e.g., "Save 20%") or hiding badges unless rules match.
*   **Strikeout Prices**: Show original vs. discounted prices clearly in Shop, Product, and Cart pages.

### Admin & Management

*   **Modern UI**: React-based rule editor for smooth management.
*   **Reports**: Track performance of your discount rules (usage count, total orders).
*   **Import/Export**: Easily migrate rules between sites via JSON.
*   **Order Tracking**: Discount details are saved to order meta for reference.

== Installation ==

1.  Upload the plugin folder to `/wp-content/plugins/`
2.  Activate **YeeDiscounts - Dynamic Discounts for WooCommerce**
3.  Go to **WooCommerce > Settings > Dynamic Discounts** to configure settings and create rules.

== Screenshots ==

1.  **Rule Editor**: Easy-to-use interface for creating complex discount rules.

== Changelog ==

= 1.0.3 =
*   Fix: Setting "Choose how the discount rules should apply"

= 1.0.2 =
*   Fix: UI tweaks for admin rule editor.

= 1.0.1 =
*   Feature: Added Reports section.
*   Feature: Added Import/Export rules.
*   Feature: Added Order Tracker to save rule details to order items/fees.
*   Enhancement: Refined Buy X Get Y logic (auto-add and sync).
*   Enhancement: Improved handling of Recursive BOGO rules.
*   Fix: UI tweaks for admin rule editor.

= 1.0.0 =
*   Initial release.