=== SPP Checkout Field Editor ===
Contributors: simpliplugin
Tags: woocommerce, checkout, checkout fields, billing fields, shipping fields
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Modifies, adds, removes, or reorders standard WooCommerce billing and shipping checkout fields.

== Description ==

**SPP Checkout Field Editor** gives store owners full control over the classic WooCommerce checkout form.

Customise the billing and shipping sections without writing code:

1. **Modify** labels, placeholders, required status, and field width for core WooCommerce fields.
2. **Add** custom fields (text, textarea, email, phone, number, select, radio, checkbox, and more).
3. **Remove** unused fields by disabling them (core fields stay protected from permanent deletion).
4. **Reorder** fields with drag-and-drop; priorities update automatically when you save.

Custom field values are saved to the order and can appear in admin order screens, customer order details, and emails.

= Features =

* Edit billing and shipping checkout fields from **WooCommerce → Checkout Fields**.
* Drag-and-drop reordering with one-click save.
* Enable / disable any field with a toggle.
* Add custom fields with configurable types and options.
* Display custom values on orders and in emails (optional per field).
* Reset a section back to WooCommerce defaults.
* Full HPOS (High-Performance Order Storage) compatibility.
* Translation-ready.
* Clean uninstall — options removed when the plugin is deleted.

= Requirements =

* WordPress 5.8 or higher.
* WooCommerce 5.0 or higher.
* PHP 7.4 or higher.
* Classic (shortcode) checkout. Core address field editing applies to the classic checkout form.

== Installation ==

1. Upload the `spp-checkout-field-editor` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Ensure WooCommerce is installed and active.
4. Navigate to **WooCommerce → Checkout Fields** to start editing.

== Frequently Asked Questions ==

= Does this require WooCommerce? =

Yes. WooCommerce must be installed and active.

= Can I delete core fields like Country or Email? =

Core fields cannot be permanently deleted. Disable them instead if you do not want them shown. Be careful: disabling required address fields can break checkout for some shipping or tax setups.

= Where are custom field values stored? =

Custom values are stored as order meta and shown in the admin order screen, customer order details (when enabled), and emails (when enabled).

= Does this work with the WooCommerce Checkout Block? =

This plugin targets the classic shortcode checkout (`[woocommerce_checkout]`). Block checkout has a different field API and limited support for editing core address fields.

= Does this work with WooCommerce HPOS? =

Yes. The plugin declares compatibility with High-Performance Order Storage.

== Screenshots ==

1. Billing fields editor with drag-and-drop ordering.
2. Add / edit field dialog.
3. Custom field value on the admin order screen.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
