=== WC Master Inventory Sync ===
Contributors: your-team
Tags: woocommerce, inventory, stock, sku, multi-store
Requires at least: 5.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later

Keep stock quantities synchronized across independent WooCommerce stores by exact SKU. No products, images, SEO, prices, categories, or customers are copied.

== Installation ==
1. Install and activate this plugin on every store.
2. On the master, choose “Master”, enter a long shared secret, and list the sub-store HTTPS URLs.
3. On every sub-store, choose “Sub-store”, enter the exact same shared secret, and add the master store URL.
4. Save all stores, then use WooCommerce > Inventory Sync > Queue full stock sync on the master.

== Behavior ==
* The master is authoritative for all stock counts.
* Stock changes at the master send the latest quantity to each sub-store after a short queue delay.
* When enabled, a WooCommerce order on a sub-store reports its SKU quantities to the master. The master reduces stock and distributes the resulting count to all subs.
* Products are matched only by an exact, unique SKU. Variations need their own SKU.

== Important operational notes ==
* Use a unique, long secret and HTTPS only. Requests are HMAC signed and expire after five minutes.
* WordPress cron dispatches the queue. Configure a real server cron for dependable, prompt synchronization.
* This is stock synchronization, not inventory reservation. Simultaneous checkout on more than one store can still oversell before the master response arrives. Use WooCommerce hold-stock, low-stock buffers, or a centralized checkout/reservation service when that risk is unacceptable.
* Ensure every shared SKU is unique on each site. A duplicate or missing SKU is skipped.
