=== WooText Change ===
Contributors: progremzion
Donate link: https://tyralix.com/
Tags: woocommerce, out of stock, stock status, availability text, find and replace
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Customize WooCommerce stock and availability text for every status — per product, per category, with merge tags and a find-and-replace engine.

== Description ==

Progremzion WooText Change lets you rewrite WooCommerce stock and availability
text without touching a template. Start with "Out of stock" → "Sold", then
customise every stock state, per product or per category, and replace any other
WooCommerce string across your whole store.

**Stock status text**

* Set your own text for **In stock**, **Low stock**, **Out of stock** and
  **On backorder / Available on backorder**.
* Language-independent: it matches the product's stock *status*, not the English
  string, so it works on translated stores too.

**Low-stock urgency**

* Show a "Selling fast — only 3 left!" style message when stock drops to a
  threshold you choose (or WooCommerce's own low-stock amount).
* Toggle whether the real quantity is shown or hidden.

**Merge tags**

* Use `{stock_qty}`, `{product_name}` and `{sku}` inside any of your text.

**Per-product & per-category overrides**

* Override the text for a single product (Inventory tab) or a whole product
  category. Product beats category beats the global setting.

**Find-and-replace anywhere**

* Add unlimited find-and-replace rules to change *any* WooCommerce string —
  shop, cart, checkout, mini-cart, emails and order details — with optional
  case-sensitive matching.

**Translation-ready**

* Fully translatable, and every configurable string is registered for **WPML**
  and **Polylang** String Translation.

This plugin requires WooCommerce to be installed and active. It is compatible
with WooCommerce High-Performance Order Storage (HPOS).

== Installation ==

= From your WordPress dashboard =

1. Go to Plugins > Add New.
2. Search for "Progremzion WooText Change".
3. Click Install Now, then Activate.

= From WordPress.org =

1. Download the plugin ZIP.
2. Upload the `progremzion-wootext-change` directory to `/wp-content/plugins/`.
3. Activate the plugin from your Plugins page.

Then open **WooCommerce > WooText Change** to configure it.

== Frequently Asked Questions ==

= Where do I configure it? =

Go to **WooCommerce > WooText Change**. You can also set overrides on a single
product (Inventory tab) or on a product category.

= Does it work on non-English stores? =

Yes. Stock status text is matched by stock *status*, not the displayed English
words, and every string is registered for WPML and Polylang.

= What merge tags are available? =

`{stock_qty}`, `{product_name}` and `{sku}`. Untick "Show quantity" to hide the
number (for example, show "Low stock" instead of "Only 3 left").

= Can I change text on the cart or checkout, not just the product page? =

Yes. Use the **Find & replace rules** to change any WooCommerce text wherever it
appears — cart, checkout, mini-cart, emails and order details included.

= Which text wins if I set it in more than one place? =

Per-product override, then per-category override, then the global setting.

== Screenshots ==

1. The settings screen under WooCommerce > WooText Change.
2. "Out of stock" replaced with your custom text on the product page.

== Changelog ==

= 2.1.0 =
* New: custom text for every stock status — In stock, Low stock, Out of stock, On backorder.
* New: per-product and per-category text overrides.
* New: low-stock threshold with "Selling fast!" style messaging and a show/hide quantity toggle.
* New: merge tags {stock_qty}, {product_name}, {sku}.
* New: find-and-replace rules engine that works on shop, cart, checkout, mini-cart, emails and order details.
* New: WPML and Polylang string-translation support.
* New: declared WooCommerce HPOS compatibility.
* Settings moved to WooCommerce > WooText Change; existing settings migrate automatically.

= 2.0.0 =
* New: settings page to set the replacement text.
* New: language-independent matching by stock status.
* Added direct-access protection and translation support.
* Declared the WooCommerce dependency via `Requires Plugins`.
* Added plugin icon, banner, and screenshots.
* Updated tested-up-to and minimum PHP/WordPress versions.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 2.1.0 =
Big update: customise every stock status, per-product/category overrides, merge tags, and store-wide find-and-replace. Your existing text is kept. Back up before updating.
