=== DiscountPilot – Dynamic Pricing & Discount Rules for WooCommerce ===
Contributors: ARsyntax
Tags: bulk discount, discount, discount rules, coupon, dynamic pricing, bogo, bulk discount, tiered pricing, cart discounts, auto coupon
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

DiscountPilot – Dynamic Pricing & Discount Rules for WooCommerce is a powerful and flexible WooCommerce dynamic pricing and discount plugin that helps you increase sales and customer loyalty.

== Description ==

DiscountPilot allows you to create complex and high-converting discount rules for your WooCommerce store. From simple percentage discounts to advanced BOGO deals and tiered pricing, this plugin gives you full control over your store's pricing strategy.

### 🚀 Key Benefits:
* **Boost Sales:** Encourage customers to buy more with bulk and bundle discounts.
* **Increase Average Order Value (AOV):** Reward loyal customers with personalized pricing.
* **Smart Conditions:** Apply discounts only when specific conditions are met (cart total, customer role, etc.).
* **Automated Marketing:** Auto-apply coupons and create URL-based promotions.

== Free Features ==

*   **Simple Discounts:** Apply fixed amount or percentage discounts to products.
*   **Bundle Discounts:** Set special prices for specific quantities (e.g., 3 for $50 or Buy 3 items for 10% off).
*   **Buy X Get X (BOGO):** Buy a quantity of a product and get a discount on the same product (e.g., Buy One Get One Free).
*   **Buy X Get Y:** Buy a specific product and receive a discount on a different product.
*   **Dynamic Product Filtering:** Filter products by Categories, Brands, Variations, Attributes, Featured status, On-sale status, and Trending status (sold in last 15 days).
*   **Advanced Product Properties Filter:** Filter by Regular Price, Stock Quantity, or Custom Meta Fields.
*   **Basic Cart Conditions:**
    *   Cart total weight
    *   Number of cart items
    *   Subtotal (including tax)
*   **Cart & Coupon Discounts:** Create custom coupons with fixed or percentage discounts.
*   **Date & Time Scheduling:** Schedule your discount rules with precise start and end dates.
*   **Display Settings:** Toggle discount tables and custom messages on single product pages.
*   **Custom Messages:** Display custom messages when a discount is applied.

== Pro Features ==

Upgrade to the Pro version for advanced automation and even more powerful discount strategies:

*   **Bulk / Tiered Pricing:** Create complex quantity-based pricing tables (e.g., 1-5 items: 5% off, 6-10 items: 10% off, 11+ items: 20% off).
*   **Auto-Apply Coupons:** Automatically apply discounts to the cart when conditions are met.
*   **URL Coupons:** Generate links that automatically apply discounts when visited (e.g., `yoursite.com/cart/?coupon=code`).
*   **Usage Limits:** Set total usage limits and per-user limits for discounts.
*   **Advanced Cart Conditions:**
    *   Subtotal excluding tax
    *   Quantity of specific items/categories/brands in cart
    *   Subtotal of specific items/categories/brands (inc/ex tax)
    *   Coupons already applied in cart
    *   Max dimensions (width/height/length) of cart items
    *   Minimum stock quantity of cart items
    *   Shipping classes in cart
*   **Customer-Specific Discounts:**
    *   User Roles (Wholesale, VIP, etc.)
    *   User Capabilities
    *   Specific Email addresses
    *   Login status
    *   User Meta fields
*   **Customer Value Conditions:**
    *   Total money spent by customer
    *   Number of previous orders
    *   Last order amount and date
    *   Average money spent per order
    *   Number of product reviews submitted
*   **Purchase History Rules:**
    *   History of bought specific products, variations, categories, or brands.
    *   Quantity and amount of money spent on specific categories/brands in the past.
*   **Checkout & Shipping Conditions:**
    *   Payment method (e.g., discount for Cash on Delivery)
    *   Shipping method
    *   Shipping address (Country, State, City, Postcode, Zone)

== Discount Modes ==

1.  **Simple:** Apply a direct discount to products.
2.  **Bulk (PRO):** Create tiered pricing based on purchase quantity ranges.
3.  **Bundle:** Apply discounts when a specific number of items are bundled together. Supports fixed bundle price, fixed item price, and percentage/fixed discounts.
4.  **Buy X Get X:** Traditional BOGO deals where the free/discounted item is the same as the purchased item.
5.  **Buy X Get Y:** Upsell or cross-sell by offering a discount on Product Y when Product X is purchased.

== Conditions & Comparison ==

You can combine multiple conditions using AND/OR logic groups. Supported comparison operators include:
*   Less than / Less equal to
*   Greater than / Greater equal to
*   Equal to / Not equal to
*   In / Not in (for lists like categories or products)
*   Yes / No (for boolean checks)

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/discountpilot-dynamic-pricing` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to **DiscountPilot** menu in your WordPress admin dashboard to start creating your first discount rule.

== Frequently Asked Questions ==

= How do I add a discount? =
Navigate to the DiscountPilot menu, click "Add New" in the Pricing Discounts section, choose your discount mode, and set your rules and conditions.

= Can I apply multiple discounts to the same product? =
The plugin evaluates rules in order. You can set up multiple rules, and they will be applied according to the logic defined in your settings.

= Does it work with variable products? =
Yes! You can target specific variations or apply rules to all variations of a product.

== Screenshots ==

1. **Pricing Discount Rules:** Create and manage all your dynamic pricing rules.
2. **Advanced Conditions:** Filter by cart, customer, or purchase history.
3. **Product Page Preview:** Shows the discounted price directly on the product page.

== Changelog ==

= 1.0.0 =
* Initial release.

