=== STS Shipping Rules for WooCommerce ===
Contributors: piotrprach
Tags: shipping, table rates, weight, woocommerce
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Configure clear weight/value shipping tables, test boundary cases, and back up your rules without extra add-ons.

== Description ==

Create native WooCommerce shipping-zone methods with as many weight and package-value rules as you need. Lower bounds are included and upper bounds are excluded, so adjacent bands have a predictable boundary.

Free features:
* Weight in kg and shippable package value after coupons, excluding tax.
* First, cheapest or highest matching rule.
* Explicit zero-cost rates; unmatched packages do not get an accidental free rate.
* A rate simulator in WooCommerce > Shipping Rules.
* JSON configuration backup and restore included free.
* WooCommerce handles shipping tax and destination-zone selection.
* No tracking, front-end scripts, external calls or dashboard review nags.

[Shipping Rules Pro](https://simpletradesolutions.com/sts-shipping-rules-pro-en/) adds per-item and per-kg surcharges, quantity and shipping-class conditions, and a free threshold within an advanced rule. Pro is a separate add-on; the Free plugin has no licence requirement.

== Installation ==

1. Install and activate WooCommerce, then this plugin.
2. Open WooCommerce > Settings > Shipping, choose a zone and add STS Shipping Rules.
3. Open the method settings, set its title and tax status, and enter a rule.
4. Save to add the row. Repeat for additional rows. Blank maximum means unlimited.
5. Use WooCommerce > Shipping Rules to simulate values and download a backup.
6. Test one value below, exactly at and above each boundary before using the rates on a live store.

== Frequently Asked Questions ==

= Which totals are used? =
Only physical items in the current shipping package. Value is line_total after discounts and before tax. Fees and virtual items are excluded. This is package-level shipping, not an all-cart total when another plugin splits packages.

= What happens at a boundary? =
A rule from 0 to 2 kg includes 0 and excludes 2. A following rule from 2 kg includes 2. When rules overlap, the selected matching mode applies.

= Does the simulator change the cart? =
No. It evaluates supplied test measurements. It is not a carrier quote and does not simulate other shipping plugins or shipping tax.

= What if an advanced extension becomes unavailable? =
Rules requiring that extension are skipped. The plugin does not silently calculate them without their surcharge. The settings editor preserves an existing unsupported table rather than deleting its extension data.

= Privacy and external services =
Free sends no data to external services, creates no tracking cookies and keeps no shipment/customer logs. Configuration backups contain only merchant rules. WooCommerce owns its normal cart sessions and orders.

= Uninstall and retention =
Shipping-method settings stay in WooCommerce shipping zones. Delete unwanted methods in WooCommerce after backing them up. No products or orders are deleted. No separate personal-data retention jobs are needed.

= Scope =
This is a table-rate calculator, not carrier label printing, address verification, dimensional-weight packing, distance calculation, or multi-currency conversion.

== Changelog ==

= 1.0.0 =
* Initial original STS release with English and Polish administration strings.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Test checkout, shipping and payment workflows on staging before production activation.
