=== Sizemint Size Chart ===
Contributors: christos70
Tags: woocommerce, size chart, size guide, ecommerce
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
WC tested up to: 11.1
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A reliable, lightweight size chart plugin for WooCommerce. Core features are, and will always be free.

== Description ==

Sizemint provides two tools for helping WooCommerce shoppers choose the right size: a product size chart and Fit Finder, which recommends a size from the shopper's measurements.

Sizemint keeps its feature set focused on size charts and size recommendation, and its core features are free, not a time-limited trial.

**Size Chart:**

* Build a size chart with a simple, click-and-type table editor — no code required.
* Assign a chart to an individual product, or to an entire product category as a fallback.
* Choose how charts appear, store-wide: as a popup (button opens a chart window), as their own product tab, or not automatically at all.
* Place any chart manually anywhere on your site with the `[sizemint_chart]` shortcode, independent of the display setting above.
* A clean, styled table out of the box — shaded header row, alternating rows for readability, and the chart's own title shown clearly, not a bare grid of numbers.

**Fit Finder:**

* A shopper enters their own measurements and gets a direct size recommendation — not just a table to read themselves.
* Supports up to six measurement types per product — Chest, Waist, Hip, Height, Sleeve Length, and Inseam — and only asks the shopper about the ones that actually apply to that product.
* The recommendation engine never averages measurements against each other: one dimension being clearly wrong for a size can't be masked by the others looking fine, so a shopper is only ever told a size with genuine confidence, or told plainly that nothing fits confidently.
* Works in centimeters or inches, on both the merchant's table and the shopper's own input, converting automatically between them.
* On a variable product, Fit Finder checks the recommended size against what's actually currently purchasable, and says so plainly if the size it would otherwise recommend isn't available right now.
* A Size Chart can optionally be linked directly to a Fit Finder table, so the same measurement data powers both — the chart then shows the real ranges (e.g. "88–96 cm") instead of a separate, hand-maintained table.

Chart data — and Fit Finder measurement data — is checked before it's saved: an incomplete or invalid entry is rejected, and the previously saved version is kept. Core features are free — permanently.

== Installation ==

1. Upload the plugin files to /wp-content/plugins/, or install directly through the WordPress admin.
2. Activate the plugin.
3. Requires WooCommerce to be installed and active.

== Changelog ==

= 1.0.2 =
* Internal code prefix changed from `SMZ`/`smz_` to `SIZEMINT`/`sizemint_` (classes, functions, constants, options, settings groups, post types, post/term meta keys, transient keys, nonce actions/fields, menu slug, script/style handles, JS globals, CSS classes/IDs/custom properties) after WordPress.org review found the previous 3-character prefix too short (minimum is over 4 characters).
* Renamed the `smz_fitfinder_table` post type to `sizemint_fitfinder` (not the literal `sizemint_fitfinder_table`) to stay within recommended custom-post-type identifier length.
* Renamed all `class-smz-*.php` source files and the `test-smz-resolution.php` test file to their `sizemint` equivalents.

= 1.0.1 =
* Internal code prefix changed from `WSC`/`wsc_` to `SMZ`/`smz_` (classes, functions, hooks, options, post types) for directory naming-collision compliance.
* Hardened sanitization of chart and Fit Finder JSON data on save.
* Restricted the custom font-family appearance setting to a safe font-family value.
* Text domain aligned to the plugin slug (`sizemint-size-chart`).

= 1.0.0 =
* Size Chart: chart builder, product and category assignment, popup/tab/none display modes, the `[sizemint_chart]` shortcode, and save-time data validation.
* Fit Finder: multi-measurement (Chest/Waist/Hip/Height/Sleeve Length/Inseam) size recommendation engine, per-product measurement selection, cm/in unit support with authoritative precision normalization, conservative variation-availability awareness, and an explicit, optional link from a Size Chart to a Fit Finder table so the same data powers both.
