=== Model Fit Info for WooCommerce ===
Contributors: rdeari
Tags: woocommerce, fashion, sizing, fit, product
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show "Our model is X cm and wearing size Y" on WooCommerce product pages, like Zalando does.

== Description ==

A tiny plugin that adds a single line to your product pages:

> Our model (178 cm) is wearing size M

Set the height and size **once** as a store-wide default. Every product inherits it. Override only the products where the actual model differs.

= Why a default? =

Most fashion brands shoot a whole collection on the same model. With a store-level default, a 5,000-SKU catalog gets meaningful coverage in minutes — not a weekend in the product editor.

= Bulk-import friendly =

The plugin uses standard meta keys so the native WooCommerce CSV importer can populate them. Add three columns to your product CSV:

* `meta:_modefiin_height` — numeric (e.g. `178`)
* `meta:_modefiin_size_worn` — free-form (e.g. `M`)
* `meta:_modefiin_use_default` — `yes` or `no`

Reimport, done.

= Where it shows =

As an overlay on the main product image — corner placement (bottom-left/bottom-right/top-left/top-right) is configurable. Works on both classic WooCommerce galleries and the new block-based Product Gallery block. Use the `[modefiin]` shortcode to place it elsewhere — anywhere in a page or post.

= Manage at scale =

A "Model fit" column on the **Products** admin list shows each product's status at a glance (custom values / using default / not set / disabled). Quick Edit lets you set height + size + use-default from the products list row without opening the full editor.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install via the Plugins screen.
2. Activate through the **Plugins** menu.
3. Go to **WooCommerce → Settings → Products → Model Fit Info** and set your store default.
4. (Optional) Override individual products on the product edit screen, **Product data → Model Fit Info** tab.

== Frequently Asked Questions ==

= Does it support multiple models per product? =

Not yet. The Zalando-style pattern shows one model per product page; this matches that. Multi-model support may come in a later version.

= Does it support per-variation model info? =

Not yet — meta is set on the parent product. Per-variation overrides are on the roadmap.

= Can I customise the wording? =

Yes — the label template is configurable in settings. Use `{height}` and `{size}` placeholders.

= How do I place it somewhere other than as an image overlay? =

Use the `[modefiin]` shortcode in any product description, page, or block. The shortcode renders as an inline pill rather than an overlay.

= Does it work with block themes? =

Yes. Both the classic WooCommerce gallery and the new `woocommerce/product-gallery` block are supported — the overlay attaches to the active main image in either case.

== Screenshots ==

1. The overlay on a product page, bottom-left of the main image.
2. The Products admin list showing the "Model fit" column for each row.
3. Quick Edit panel — height, size and "use store default" inline on the products list.
4. The settings page in WooCommerce → Settings → Products → Model Fit Info.
5. The per-product override panel in the product edit screen.

== Changelog ==

= 1.0.0 =
* First public release.
