=== Nempra Measure Lite ===
Contributors: nempra
Tags: woocommerce, measurement, square-meter, length-width-price, calculator
Requires at least: 6.5
Requires PHP: 7.4
Requires Plugins: woocommerce
Tested up to: 7.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Theme-independent measurement pricing for simple WooCommerce products: sell by length x width, priced live as the customer picks dimensions.

== Description ==

Nempra Measure Lite adds a length x width calculator to any simple WooCommerce product. As the customer chooses dimensions, the price updates instantly on the product page, calculated as length x width x the product's normal WooCommerce price per square meter.

The plugin uses standard WooCommerce hooks only. It has no theme-specific integration, so it works with any properly-coded WooCommerce theme.

= What's included in Lite =

* Length x width area calculation, live on the product page.
* Works with simple (single-variant) products.
* Server-side re-validation at checkout, so the price shown always matches the price charged.
* Existing settings and product data from a supported legacy measurement plugin are read automatically as a migration fallback -- nothing is deleted.

= Lite and Pro =

Lite is a complete, unrestricted calculator for simple products -- it is not a limited trial of Pro. [Nempra Measure Pro](https://nempra.com/measure.html) is a separate plugin for stores that also need:

* Variable products (multiple options per product, each with its own measurement rules).
* Per-variation measurement overrides.
* Advanced min/max length and step rules per product.
* Priority support and updates.

Pro is a drop-in upgrade: it shares its settings and product-metadata schema with Lite, so switching plugins does not require reconfiguring your products.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/nempra-measure-lite`, or install it through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Make sure WooCommerce is installed and active -- Nempra Measure Lite requires it.
4. Open a simple product's edit screen and set your length range, step size and width(s) under the Measurement tab.
5. Save the product. The calculator appears automatically on its product page.

== Frequently Asked Questions ==

= Does this work with variable products? =

Not in Lite. Lite is built for simple (single-variant) products. Variable-product support, with per-variation overrides, is a Nempra Measure Pro feature.

= I'm migrating from another measurement calculator plugin. Is that safe? =

Yes. On activation, Nempra Measure Lite detects the old plugin's settings and product metadata and reads them as a starting point -- your existing configuration is never deleted. Never run both pricing plugins active at the same time: Lite detects the old plugin and will not boot its own pricing engine while it remains active. We recommend testing on a staging copy first: deactivate the old plugin, activate this one, confirm a sample product still shows its prior configuration, then re-save that product and test the full product page, cart, checkout and order flow before going live.

= Will my settings carry over if I upgrade to Pro? =

Yes. Pro reads the same settings and product-metadata schema as Lite, so upgrading is a drop-in replacement -- no reconfiguration needed.

= Does the price shown to the customer match what they're actually charged? =

Yes. The price calculation is re-validated on the server at checkout, using the product's current configuration -- the browser-side number is never trusted on its own.

== Screenshots ==

1. The calculator on a product page, ready for the customer to pick dimensions.
2. A live calculation: 5 m length, 1 m width -- area and total price update instantly.
3. The length field is a dropdown limited to the step size configured for the product.
4. The total also scales with quantity: 5 items at 5 m each.
5. The Measurement tab on a simple product's edit screen.
6. The Nempra Measure settings dashboard.

== Changelog ==

= 1.0.1 =

* Fixed: the disabled "Pro preview" fields on the product Measurement tab
  printed their CSS and JavaScript inline instead of using wp_enqueue_style()
  / wp_enqueue_script(). Both now load from properly enqueued, screen-scoped
  asset files.
* Removed the packaged .po/.mo translation files; translations are handled
  through translate.wordpress.org.

= 1.0.0 =

* First stable release. Nempra Measure Lite has been live-tested end to end
  on a real WooCommerce store and passed a full security and performance
  audit with no issues found.

= 0.4.0-beta.7 =

* Added request-local caches for settings and product configuration.
* Limited calculator assets to product pages by default while preserving the public override filter.
* Reduced MutationObserver scope when the calculator is already present.
* Hardened admin navigation output.

= 0.4.0-beta.6 =

* Added Settings, Getting started and Help tabs to the branded dashboard.
* Added a three-step onboarding guide and first-activation welcome notice.
* Added an explicit Lite versus Pro capability comparison.
* Added packaged getting-started and troubleshooting documentation.

= 0.4.0-beta.5 =

* Added the official Nempra symbol to the branded settings dashboard.

= 0.4.0-beta.4 =

* Added the branded Nempra Measure settings dashboard.
* Added edition, version, environment and HPOS status information.
* Improved setting descriptions, layout, accessibility and responsive behavior.
* Refreshed the English source catalog and Dutch translation.

= 0.4.0-beta.3 =

* Renamed the public product identity to Nempra Measure by Nempra Software.
* Adopted the final plugin slug and translation domain `nempra-measure`.
* Preserved the existing `yzpm_*` settings and metadata schema for upgrades.

= 0.4.0-beta.1 =

* Established the standalone Lite edition for simple WooCommerce products.
* Kept the tested calculation, migration, cart, checkout, order, translation, and theme-independent behavior.
* Separated variable-product implementation into the Pro distribution.

= 0.2.0-alpha.1 =

* Split the monolithic prototype into bootstrap, settings, product, frontend, cart/order, admin, and legacy compatibility services.
* Replaced legacy-branded settings and new metadata with the neutral `yzpm_*` schema.
* Added read compatibility for existing `sgmc_settings` and `_sgmc_*` product metadata.
* Added runtime compatibility for existing `sgmc` cart sessions so open carts keep their validated measurements during migration.
* Added a safe conflict notice when the old pricing plugin remains active.
* Removed all WoodMart-specific selectors and markup manipulation.
* Replaced catalog-button HTML regex editing with WooCommerce filters.
* Fixed the settings capability mismatch for shop managers.
* Added dependency, license, domain path, and version metadata.
* Changed source strings to English and added Dutch localization scaffolding.
* Limited frontend assets to WooCommerce surfaces, with a public filter for custom product layouts.

== Upgrade Notice ==

= 1.0.1 =
Asset-loading and packaging fix -- no settings changes required.

= 0.4.0-beta.7 =
Performance and hardening pass -- no settings changes required.
