=== Advanced Coupon for WooCommerce – Create Tiered Discounts and Conditional Coupons ===
Contributors: repon.wp, codiepress
Tags: coupons, discount rules, tiered pricing, dynamic coupon, role-based discount
Requires at least: 4.3
Tested up to: 6.9
Stable tag: 1.1.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

A flexible discount system for WooCommerce. Create tiered coupons, conditional promotions, and user-specific discounts with ease.

== Description ==

**Advanced Coupon for WooCommerce** helps you create custom discount rules beyond the standard coupon system. This plugin enables store owners to apply automatic, tiered discounts based on flexible conditions — such as cart total, quantity, customer role, location, date, time, and more.

Whether you're offering volume-based pricing, member-exclusive deals, or time-limited promotions, this plugin gives you the tools to make it happen — all from the native WooCommerce coupon interface.

### Use Cases
- Offer **bulk discounts** when customers purchase more than a certain quantity or reach a subtotal.
- Reward **specific user roles** (e.g., VIPs, subscribers) with exclusive coupon deals.
- Apply **location-based coupons** for certain countries, cities, or postal codes.
- Schedule discounts to run during a specific **date or time range**.
- Combine multiple conditions to create more targeted promotions.

== Features ==

**1. Tiered Discounts**  
Set multiple levels of discounts based on subtotal, item quantity, or weight. For example:  
- Spend $100, get 10% off  
- Spend $200, get 20% off

**2. Condition-Based Rules**  
Coupons can be shown or hidden based on:
- Cart subtotal
- Number of items
- Cart weight
- User role
- Location (country, city, postcode)
- Specific days of the week
- Date and time range
- Product taxonomy (categories, tags, etc.)

**3. Role-Based Discounts**  
Restrict coupon availability to logged-in users with specific roles (e.g., customer, subscriber, wholesaler).

**4. Time-Based Activation**  
Activate coupons only during certain times or days, such as weekends, holidays, or flash sales.

**5. Free Product Coupon (Pro Version)**
Reward customers instantly by offering free products when they apply a coupon. The Pro version allows you to attach a product to any coupon—when the coupon is applied, the product is automatically added to the cart. Perfect for "Buy X Get Y Free" promotions or special giveaway campaigns.

== Installation ==

1. Upload the plugin to your WordPress site or install it via the WordPress admin dashboard.
2. Activate the plugin from the **Plugins** menu.
3. Go to **Marketing > Coupons**, and create or edit a coupon.
4. Scroll to the "Advanced Conditions" section to set your rules.
5. Save the coupon — it will apply automatically if conditions are met.

== Frequently Asked Questions ==

= Can I add multiple conditions to one coupon? =  
Yes, you can add as many conditions as needed. The coupon will apply only when all the conditions are met.

= Can I restrict coupons by user role? =  
Yes, you can create rules that only apply to specific roles like subscribers, wholesalers, or administrators.

= Where can I manage these conditions? =  
All settings are available within each coupon under **Marketing > Coupons**.

== Support ==

For help and inquiries, please contact us at [support@codiepress.com](mailto:support@codiepress.com).  
We're happy to assist you with setup, usage, or troubleshooting.

== About the Developer ==

This plugin is built and maintained by [Codiepress](https://codiepress.com), a team focused on creating tools that enhance WooCommerce for store owners and developers. We prioritize performance, usability, and real-world store needs.

== Changelog ==

= 1.1.1 =
* Added a filter to adjust the coupon discount type for accurate calculation

= 1.1.0 =
* Fixed Discount Value of the Coupon

= 1.0.9 =
* Optimized code

= 1.0.8 =
* Compatibility with WordPress 6.8

= 1.0.7 =
* Fixed: Call to a member function get_subtotal()

= 1.0.6 =
* Added: Product taxonomy support for coupon conditions

= 1.0.5 =
* Updated: Plugin ID system

= 1.0.4 =
* Added: New condition types

= 1.0.3 =
* Fixed: Conditional logic filters

= 1.0.2 =
* Updated: Condition templates
* Added: Additional rule types

= 1.0.1 =
* Fixed: Country filter issue
* Updated: Coupon settings design

= 1.0.0 =
* Initial release
