=== AiTech Product Badges & Labels for WooCommerce ===
Contributors: aitechtools
Tags: woocommerce, product badges, product labels, sale badge, discount
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Unlimited sale %, New, Low stock and custom product badges with display rules. Works with block and classic themes. No JavaScript on your shop.

== Description ==

Show shoppers why a product is worth clicking: **-25%**, **New**, **Only 3 left**, **Free shipping**, **Back in stock** – placed right on the product image, everywhere your products appear.

AiTech Product Badges is free with **no limits on the number of badges** and no "upgrade to unlock" walls on the core features.

= Why stores use it =

* **Live text variables** – `{discount}`, `{saved}`, `{price}`, `{stock}`, `{sku}`, `{category}`, `{title}` keep every badge accurate across your whole catalog. "-{discount}%" becomes "-25%", "-30%", "-10%" automatically.
* **Display rules** – on sale, discount %, product age (New), featured, stock status, stock quantity, price, category, tag, product type or specific products. Combine conditions with AND, and groups with OR.
* **Block themes supported** – works with the Product Collection and Product Image blocks in Twenty Twenty-Five and other block themes, as well as classic themes like Storefront.
* **Fast** – one small stylesheet (~2 KB), zero JavaScript on the front end, no external requests, no tracking.
* **Ready in one minute** – three starter badges (Sale %, New, Low stock) are created on activation. Edit or delete them any time.
* **Live preview** in the badge editor.
* **Six shapes** – rectangle, rounded, pill, circle, tag and corner ribbon, any colors, any size, four positions, stacking when several badges share a corner.
* **Replaces the default "Sale!" flash** so you never show two sale labels (optional).
* **Variable products** – discount shows the best variation, stock sums managed variations.
* **Shortcode** – `[aitpb_badges]` or `[aitpb_badges product_id="123"]` for page builders and custom templates.
* **Developer friendly** – filters for adding your own conditions, variables, shapes and classes.

= Pro add-on (optional, sold separately) =

AiTech Product Badges Pro is a separate add-on plugin that is not hosted on WordPress.org. Nothing in this free plugin is locked or time-limited. The add-on adds rules and effects for stores that run promotions: schedule badges by date range and weekday, bestseller (units sold), top-rated and review-count rules, sale countdown text `{sale_ends}`, logged-in user and role targeting, and pulse / bounce / shine animations that respect "reduce motion". The free plugin keeps working without it.

= Privacy =

The plugin stores badge settings in your own database. It does not collect visitor data, set cookies or contact external servers.

== Installation ==

1. Install from Plugins → Add New, or upload the folder to `/wp-content/plugins/`.
2. Activate. WooCommerce must be active.
3. Go to **Products → Badges**. Three starter badges are already live; edit them or click **Add badge**.

== Frequently Asked Questions ==

= Is there a limit on badges? =

No. Create as many badges as you like in the free version.

= Does it work with my theme? =

It works with block themes (Product Collection / Product Image blocks) and classic WooCommerce templates. If your theme or page builder uses its own product grid without WooCommerce hooks, place `[aitpb_badges]` in the product template.

= Why do I see two sale labels? =

Enable "Hide the WooCommerce sale flash" in **Products → Badge settings** (on by default).

= Which badge wins when many match? =

Badges are ordered by their **Order** value (lowest first). Set the maximum per product in Badge settings.

= Does it slow down my store? =

No JavaScript is added to the front end. Rules are evaluated in PHP with data WooCommerce has already loaded.

= Are badges cached with my page cache? =

Yes, badges are part of the page HTML. Rules based on the visitor (Pro: logged-in / role) need a page cache that varies by login state, which most caches already do.

== Screenshots ==

1. Sale %, New and Low stock badges on a classic-theme shop (Storefront), free version.
2. Badge editor with variables, shapes, colors and live preview.
3. Badge list with previews and rule summaries.
4. Single product page.
5. Mobile view.

== Changelog ==

= 1.0.0 =
* First release.
