=== SequenceGuard for WooCommerce ===
Contributors: builtbyollie
Tags: woocommerce, order numbers, sequential orders, order management
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Reliable sequential order references for WooCommerce, with safe retry after lock contention.

== Description ==

SequenceGuard gives every new WooCommerce order a persistent sequential reference. It is designed for stores that need order references that are easy to quote, search, and reconcile.

* Concurrency-safe sequence allocation
* Automatic retry after temporary lock contention
* Persistent order metadata
* Order-list search support
* HPOS and legacy order-storage compatibility
* No external service, tracking, account, quota, or customer-data sync

SequenceGuard numbers new orders only. It never renumbers historic orders.

SequenceGuard Pro is an optional separate add-on. It adds custom prefixes, zero padding, and a local missing/duplicate-reference diagnostic. The free plugin remains fully functional without Pro.

== Installation ==

1. Install and activate WooCommerce.
2. Upload SequenceGuard under Plugins > Add New > Upload Plugin, or install it from WordPress.org.
3. Activate SequenceGuard.
4. Open WooCommerce > SequenceGuard to confirm the current sequence.

== Frequently Asked Questions ==

= Does it change existing orders? =

No. SequenceGuard assigns references only to orders created after activation.

= Does it work with HPOS? =

Yes. SequenceGuard declares HPOS compatibility and uses WooCommerce order APIs for order data.

= What happens if I deactivate or uninstall it? =

Existing order references remain stored with the orders. The sequence counter is retained so reinstalling the plugin cannot reuse an old reference.

= Does it send data anywhere? =

No. SequenceGuard works entirely on your WordPress site and does not contact an external service.

== Changelog ==

= 0.3.0 =
* Prepared the standalone free edition for WordPress.org.
* Added extension hooks for the separate Pro add-on.
* Prevented duplicate Action Scheduler retry jobs.
* Added deactivation cleanup while retaining order references and the counter.

= 0.2.0 =
* Added a database-backed allocation lock with automatic retry after contention.
* Runtime-tested sequential assignment, duplicate prevention, diagnostics, existing-order behaviour, and concurrent order creation with HPOS enabled and disabled.

= 0.1.0 =
* First development build.
