=== Carton Optimizer for WooCommerce ===
Contributors: xelti
Tags: woocommerce, shipping, logistics, packaging, optimization
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Smart carton/packing logic and shipping-cost adjustments for WooCommerce.

== Description ==
Carton Optimizer helps you estimate how many cartons an order needs and optionally adjust shipping rates based on your rules.

Main features:
* Product "carton points" field to estimate space/volume
* Max points per carton and optional buffer points (auto/always/off)
* Per-shipping-method surcharge (for example: extra fee per additional carton)
* Admin UI language switch (EN/PL)

Works on WooCommerce cart/checkout by filtering available shipping rates.

== Installation ==
1. In WordPress admin, go to Plugins -> Add New -> Upload Plugin.
2. Upload the ZIP file and click "Install Now".
3. Activate the plugin.
4. Go to WooCommerce -> Carton Optimizer to configure settings.

== Frequently Asked Questions ==
= Does the plugin require WooCommerce? =
Yes. WooCommerce must be active.

= Where do I set carton points for products? =
Open a product in wp-admin and look for the Carton Optimizer fields (carton points and buffer toggle).

= Will it change my shipping prices automatically? =
Only if you enable the relevant options. The plugin can add surcharges to chosen shipping methods.

== Changelog ==
= 1.0.2 =
* Fix: sanitize product-field POST values at read time (Plugin Check compatibility).

= 1.0.1 =
* Security hardening: added nonce verification and proper input handling for product fields.

= 1.0.0 =
* Initial release.
