=== DiscountFlow Studio for WooCommerce – Dynamic Pricing, Quantity Discounts & Promotional Banners ===
Contributors: prokashsarker2026
Tags: woocommerce discounts, dynamic pricing, quantity discounts, coupon code, promotional banner
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Boost WooCommerce sales with smart dynamic pricing — global discounts, quantity-based deals, product-specific rules, coupon codes & promo banners.

== Description ==

**DiscountFlow Studio for WooCommerce** is the most flexible discount management plugin for WooCommerce store owners. Whether you want to run a sitewide sale, reward bulk buyers with quantity discounts, or display eye-catching promotional banners — DiscountFlow Studio handles it all from one clean settings panel.

Increase your average order value, reduce cart abandonment, and drive more conversions with powerful, rule-based discount strategies — no coding required.

---

### 🎯 Key Features

**Global Discount Rules**
Apply a percentage or fixed-amount discount across your entire WooCommerce product catalog in one click. Perfect for flash sales, seasonal promotions, and clearance events.

**Product-Specific Discounts**
Override global settings and set individual discount rules directly on each product — ideal for highlighting featured products or running targeted promotions.

**Quantity-Based (Tiered) Discounts**
Reward customers who buy more. Create unlimited tiered discount rules — for example, 10% off for 2–3 items, 15% off for 4 or more items. Rules are fully customizable or choose from built-in presets.

**Promotional Banners**
Automatically display attractive, attention-grabbing promo banners on single product pages and shop listing pages. Show discount percentages and coupon codes to encourage purchases.

**Coupon Code Integration**
Auto-generate WooCommerce-native coupon codes and display them in promotional banners. Customers see the promo code directly on the product page — reducing friction at checkout.

**Discount Badges on Shop Page**
Highlight discounted products with bold discount badges (e.g., -15% OFF) on WooCommerce shop loop pages to increase click-through rates.

**Cart & Checkout Display**
Show applied discounts and savings in the cart and checkout, giving customers full transparency and confidence in their purchase.

**High-Performance Order Storage (HPOS) Compatible**
Fully compatible with WooCommerce's modern HPOS (Custom Order Tables) for maximum performance and scalability.

---

### 💡 Who Is This For?

- WooCommerce store owners running sales or promotions
- Businesses offering bulk or wholesale pricing
- Shop managers who want a no-code discount management solution
- Developers building stores that need flexible, rule-based pricing

---

### ⚙️ How It Works

1. **Install & Activate** — Install DiscountFlow Studio and activate it alongside WooCommerce.
2. **Configure Discounts** — Go to **WooCommerce → Discount Settings** to set up your rules.
3. **Launch Promotions** — Discounts, banners, and badges appear automatically on your storefront.

---

### 🔍 SEO & Performance

- Lightweight — no bloat, no unnecessary scripts loaded on pages outside WooCommerce
- All output properly escaped and sanitized following WordPress coding standards
- Compatible with major caching plugins and page builders

---

== Installation ==

1. Upload the `discountflow-studio-for-woocommerce` folder to `/wp-content/plugins/`, or install directly via the WordPress **Plugins → Add New** screen.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Navigate to **WooCommerce → Discount Settings** to configure your discount rules.
4. Save settings — discounts and banners will appear on your store immediately.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. DiscountFlow Studio for WooCommerce requires WooCommerce to be installed and active. If WooCommerce is not detected, the plugin will deactivate automatically and show an admin notice.

= Can I use multiple discount types at the same time? =

Yes. You can combine global discounts, product-specific discounts, and quantity-based (tiered) discounts simultaneously. The plugin automatically applies the best applicable discount for each product.

= How does the quantity-based discount work? =

You define rules based on the total number of items in the cart. For example: 10% off when 2–3 items are in the cart, 15% off when 4 or more items are added. You can use built-in preset rules or create fully custom rules.

= Are discounts applied before or after taxes? =

Discounts are applied to the product price before WooCommerce calculates taxes — following standard WooCommerce pricing behavior.

= Can I display a coupon code to customers? =

Yes. Enable the coupon code display in the settings and enter your promo code. DiscountFlow Studio will show it in a promotional banner on product pages (e.g., "Online exclusive. Use Code: SAVE20 in basket"). The coupon is also auto-created in WooCommerce.

= Can I customize the promotional banner? =

Yes. You can customize the prefix text (e.g., "Online exclusive. Use Code:"), the coupon code itself, and the suffix text (e.g., "in basket") from the admin settings. For advanced styling, edit the `frontend.css` file in the plugin's `css/` directory.

= Does this plugin work with variable products? =

Yes. DiscountFlow Studio supports both simple and variable WooCommerce products.

= Is this plugin compatible with WooCommerce HPOS? =

Yes. Full compatibility with WooCommerce High-Performance Order Storage (Custom Order Tables) is declared.

= Will this slow down my store? =

No. The plugin only loads its scripts and styles on WooCommerce pages (shop, product, cart, checkout). Admin assets are only loaded on the Discount Settings page.

== Screenshots ==

1. Admin settings page — global discount configuration
2. Admin settings page — coupon code and promo text settings
3. Admin settings page — quantity-based discount rules builder
4. Single product page — promotional banner with discount info and coupon code
5. Shop page — discount badge on product thumbnail and promo banner below title
6. Cart page — discounted price display with savings percentage
7. Product edit page — product-specific discount meta box

== Changelog ==

= 1.0.1 =
* Improved SEO-friendly plugin description and readme content
* Added multi-language support (10 languages including Bengali)
* Fixed text inconsistencies: generic "product" terminology replacing domain-specific terms
* Improved user-friendly labels and help text throughout admin settings
* Updated POT file with all translatable strings
* Fixed Requires PHP spacing in plugin header

= 1.0.0 =
* Initial release
* Global discount functionality (percentage and fixed amount)
* Product-specific discount meta box
* Quantity-based (tiered) discount rules with custom rule builder
* Promotional banner on single product pages
* Compact promo banner on shop listing pages
* Discount badge on shop loop product thumbnails
* Coupon code display and auto-generation
* Cart and checkout discount display
* HPOS (High-Performance Order Storage) compatibility

== Upgrade Notice ==

= 1.0.1 =
This update improves plugin descriptions, fixes text issues, adds multi-language support, and enhances user-friendly labeling across the admin settings. No database changes — safe to upgrade.

= 1.0.0 =
Initial release of DiscountFlow Studio for WooCommerce.
