=== ShopBadger – Discount Banner for WooCommerce ===
Contributors: nikitatylerplugins
Tags: woocommerce, discount, banner, badge, sale
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically overlays a customizable discount banner on WooCommerce product cards using data from Discount Rules for WooCommerce by Flycart.

== Description ==

ShopBadger – Discount Banner for WooCommerce automatically overlays a customizable deal banner on your WooCommerce product cards and single product pages, using discount data from the "Discount Rules for WooCommerce" plugin by Flycart (free version or PRO).

**Key features**

* Automatically detects active discounts from Discount Rules for WooCommerce (free and PRO)
* Customizable banner background color, text color, font size, and position
* Optional prefix text or emoji before the discount label
* Works with AJAX-loaded and infinite-scroll product grids via a MutationObserver
* Configurable CSS selectors so the banner can adapt to different themes and page builders
* Lightweight: assets are only enqueued on the frontend, and banner data is fetched via a nonce-protected AJAX request

**Requirements**

* WooCommerce (active)
* Discount Rules for WooCommerce by Flycart (free or PRO) — used as the data source for active discounts

This plugin does not modify prices or discount rules. It only reads existing discount information and displays a visual banner.

== Installation ==

1. Make sure WooCommerce and Discount Rules for WooCommerce (Flycart) are installed and active.
2. Upload the plugin files to the `/wp-content/plugins/shopbadger-discount-banner` directory, or install the plugin through the WordPress plugins screen directly.
3. Activate the plugin through the "Plugins" screen in WordPress.
4. Go to WooCommerce → ShopBadger Banner to configure the banner appearance and CSS selectors.

== Frequently Asked Questions ==

= Does this plugin create discounts? =

No. ShopBadger only displays a banner for discounts that are already configured in Discount Rules for WooCommerce by Flycart. It does not calculate or apply discounts itself.

= Why isn't the banner showing on my product cards? =

Different themes and page builders use different markup for product cards. Use the "CSS Selectors (Advanced)" section under WooCommerce → ShopBadger Banner to set the correct selectors for your theme.

= Is PRO required? =

No, the free version of Discount Rules for WooCommerce is fully supported. The PRO package is also supported when installed alongside the free core plugin.

== Screenshots ==

1. Banner appearance settings screen.
2. Example discount banner on a product card.

== Changelog ==

= 1.0.0 =
* Initial release.

= 1.1.0 =
  * Added single product page support
  * Added circle and star badge shapes with auto-fit text
  * Added HEX color picker and live settings preview
  * Redesigned settings panel
