=== STS Checkout Fields for WooCommerce ===
Contributors: piotrprach
Tags: checkout, custom fields, 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

Add validated text, select and checkbox order fields to classic and block checkout, while preserving WooCommerce rules.

== Description ==

Add useful order information without replacing WooCommerce's checkout logic.

Free features:
* Unlimited custom order fields: text, select and checkbox.
* Required-field checks and select-option validation on the server.
* Native WooCommerce Additional Checkout Fields integration for Checkout Blocks.
* A classic-checkout bridge for the same custom field definitions.
* Safe label, placeholder and ordering changes for existing classic fields. Core validators, country logic and required status are retained.
* Saved label/value snapshots retain readable historical order information when a field is renamed or removed.
* Standard WooCommerce order storage, compatible with HPOS.
* No review nags, analytics, external calls or storefront script library.

[Checkout Fields Pro](https://simpletradesolutions.com/sts-checkout-fields-pro-en/) adds input-format/length validation and configuration import/export. It is a separate optional add-on.

== Installation ==

1. Install and activate WooCommerce and this plugin.
2. Open WooCommerce > Checkout Fields.
3. Add a field with a stable key such as delivery_reference and a customer-facing label.
4. For select fields, enter one value|label per line.
5. Save and test checkout as a customer. In a block checkout, retain the Order information inner block.
6. Existing-field label/placeholder/order overrides affect classic checkout only.

== Frequently Asked Questions ==

= Does it support both checkout types? =
Custom order fields support the classic shortcode checkout and WooCommerce Checkout Blocks. Built-in billing/shipping label and order overrides are classic-only. The plugin does not edit the built-in Blocks address fields or reposition Blocks components.

= Where are custom fields shown? =
In a separate section after classic order notes (also when notes are disabled) and in the Blocks Order information section. They are not merged into postal address lines. WooCommerce renders current native Blocks fields using its current field labels; the plugin renders classic values and archived snapshots when a field definition is removed.

= Can I remove required core address fields? =
No. This version intentionally preserves WooCommerce's address, tax, payment and required-field rules. You can edit presentation, not disable essential checks.

= Why use a stable key? =
A key identifies stored information. Changing it creates a new field. Past order snapshots retain the old label and value. Do not use these fields to collect card details, passwords, or unnecessary sensitive data.

= Privacy and retention =
Customer-entered information is stored as protected WooCommerce order metadata. It is displayed only in normal authorized order screens/emails. Free sends no data to external services and creates no extra tracking cookies. Order retention is controlled by the merchant's WooCommerce order policy. The values are included in WooCommerce's personal-data export and removed when WooCommerce erases personal data from an order.

= Uninstall =
By default settings are retained. An opt-in checkbox removes plugin settings on uninstall. Existing order values and all core products/orders are always retained.

= Scope =
No file uploads, custom address-format integration, conditional visibility, account-field editing, or tax-registration verification in version 1.0. Custom labels are entered by the merchant; the administration interface is translated into English and Polish.

== Screenshots ==

1. Free order-level fields in the classic WooCommerce checkout; fictional demo basket.
2. The same Free order-level fields registered through the native WooCommerce Checkout Blocks API.

== 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.
