=== MZR Buy X Pay Y ===
Contributors: meshut
Tags: woocommerce, discount, buy x get y, dynamic pricing, cart discount
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Powerful "Buy X Pay Y" discount module for WooCommerce. Create dynamic promotions like "Buy 2 Pay 1", "Buy 3 Pay 2", and more!

== Description ==

**MZR Buy X Pay Y** is a simple yet powerful WooCommerce plugin that allows you to set up flexible "Buy X Get Y Free" or "Buy X Pay Y" discounts for your customers. Encourage sales, move inventory faster, and improve your store's conversion rate effortlessly.

**Key Features:**

🔥 **Fully Customizable Buy X Pay Y Promotions**
- Set X (number of products to buy) and Y (number of products to pay for).
- Supports any combination, e.g., Buy 3 Pay 2, Buy 5 Pay 3, etc.

🎯 **Product & Category Inclusion/Exclusion**
- Apply discounts to specific products or product categories.
- Exclude products or categories you don't want to include in the promotion.

📅 **Schedule Promotions**
- Define start and end dates with precise time control.
- Run limited-time offers or ongoing promotions.

📝 **Custom Discount Labels & Descriptions**
- Customize the label shown in the cart (e.g., "Special Offer: Buy 3 Pay 2").
- Optionally display a detailed description below the cart totals.

⚙️ **No Coupons Needed**
- Discount is applied automatically in the cart, no manual coupon entry.

🚀 **Lightweight & Fast**
- No bloat, clean code optimized for performance.

---

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/mzr-buy-x-pay-y` directory, or install the plugin through the WordPress plugin screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **WooCommerce → Settings → General → Buy X Pay Y** tab to configure your discount rules.

---

== Frequently Asked Questions ==

= Can I set different Buy X Pay Y rules for different categories or products? =

Currently, the plugin applies one rule globally but allows you to **include or exclude specific categories and products** to fine-tune where the discount applies.

= Does the plugin automatically apply the discount in the cart? =

Yes, there is no need for customers to enter a coupon code. The discount is applied automatically if conditions are met.

= Can I set start and end dates for promotions? =

Absolutely! You can easily set a promotion period using the built-in date & time settings.

= Does it support variable products? =

Yes! The plugin works with both simple and variable products.

---

== Screenshots ==

1. Buy X Pay Y settings tab in WooCommerce General Settings.
2. Discount applied automatically in the cart totals.

---

== Changelog ==

= 1.0.1 =
* The problem of the discount description appearing even if the module is inactive has been fixed.

= 1.0.0 =
* Initial stable release.
* Flexible Buy X Pay Y discount rules.
* Include/exclude categories and products.
* Promotion period settings.
* Custom discount labels and descriptions.

---

== Upgrade Notice ==

= 1.0.0 =
Initial release. Set up flexible Buy X Pay Y promotions and boost your WooCommerce sales!
