Title: Kitgenix Stock Sync for WooCommerce
Author: Kitgenix
Published: <strong>2026-02-14</strong>
Last modified: 2026-10-30

---

Szukaj wtyczek

![](https://ps.w.org/kitgenix-stock-sync-for-woocommerce/assets/banner-772x250.png?
rev=3674883)

![](https://ps.w.org/kitgenix-stock-sync-for-woocommerce/assets/icon-256x256.png?
rev=3674883)

# Kitgenix Stock Sync for WooCommerce

 Autor: [Kitgenix](https://profiles.wordpress.org/kitgenix/)

[Pobierz](https://downloads.wordpress.org/plugin/kitgenix-stock-sync-for-woocommerce.2.2.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/kitgenix-stock-sync-for-woocommerce/)

## Opis

Kitgenix Stock Sync for WooCommerce synchronizes inventory between WooCommerce stores
using a Master/Child architecture. The Master store acts as the authoritative inventory
source while Child stores send stock-changing events back to the Master and receive
the resulting authoritative stock state.

The plugin is built for merchants who sell the same physical inventory through several
WooCommerce storefronts and need stock quantity, stock status and backorder behaviour
to converge without manually exporting or importing inventory files.

Stores communicate directly over signed REST requests; there is no Kitgenix cloud
stock relay. Background delivery uses WooCommerce Action Scheduler where available,
with retries and backlog handling for temporary failures.

Key capabilities include one Master store with one or more Child stores, SKU and
global-ID based matching, synchronization of stock quantity, status, backorders 
and low-stock amount, asynchronous event delivery with retries and duplicate-event
protection, conflict scanning and reconciliation, a Stock History log per SKU, a
SKU Mapping Repair Tool, a Failover Readiness Report, strict checkout validation,
shared-secret rotation, signed REST authentication, Site Health integration and 
WP-CLI tooling.

See the Other Notes section below for full details on each feature area, and the
FAQ for common questions.

#### WooCommerce Stock Sync Features

 * One authoritative Master store with one or more Child stores.
 * SKU-based product/variation matching plus plugin global IDs for stable identity.
 * Synchronization of stock quantity, status, backorder setting and low-stock amount.
 * Effective stock-management mode handling, including variation inheritance from
   a parent product.
 * Automatic capture of WooCommerce stock-change hooks, order processing and stock
   restoration.
 * Asynchronous event delivery with retries/backoff, per-event versioning and duplicate-
   event detection.
 * Persistent backlog for recoverable failed deliveries.
 * Conflict scanning and reconciliation tools.
 * Stock History per SKU: versioned stock events for one product across connected
   stores.
 * SKU Mapping Repair Tool: find and fix duplicate or missing SKU identities, with
   sync held for ambiguous SKUs until they are repaired.
 * Failover Readiness Report: what happens if the Master is unreachable, including
   the age of last-known-good stock snapshots.
 * Strict Child-store checkout validation option, with cached-snapshot/failure strategy
   options.
 * SKU rename tracking and product/SKU exclusions.
 * Shared-secret rotation, signed REST authentication and replay protection.
 * Scheduled health checks, connection status and WordPress Site Health integration.
 * Event log, diagnostic code reference and WP-CLI tooling.
 * WooCommerce HPOS compatibility handling.

#### Master and Child Architecture

The Master owns the authoritative stock state. A Child store can detect a local 
event that changes stock, send that event to the Master, and then receive the authoritative
result that should be applied across the network.

This avoids a simple „last store to save wins” design in which two storefronts can
continually overwrite one another with stale quantities.

The Master configuration stores the connected Child sites and the Child configuration
stores the Master endpoint/credentials needed for signed communication.

#### Inventory Fields Synchronized

The state payload includes the stock-related fields needed to keep WooCommerce availability
consistent, including quantity, status, backorders, low-stock amount and effective
manage-stock state.

Variable products/variations are handled with awareness that a variation may manage
its own stock or inherit stock management from the parent product.

The plugin focuses on stock. It is not a general product-catalogue synchronizer 
for descriptions, images, categories and full pricing; Kitgenix MultiStore Sync 
is a separate broader plugin for that use case.

#### Automatic Capture of Stock Changes

The sync engine hooks into WooCommerce product/variation stock updates, stock-status
updates, updated product properties, order processing and stock restoration. This
means stock changes made by normal WooCommerce operations can enter the sync pipeline
without staff having to click a separate „export stock” button.

Because third-party integrations such as POS or marketplace connectors often write
stock through WooCommerce’s normal APIs/hooks, their resulting WooCommerce stock
changes can also be observed without the Kitgenix plugin calling the third party
directly.

#### Event Versioning and Duplicate Protection

Each synchronized product carries plugin metadata used for global identity and event
versioning. The receiver tracks the applied version so an older delayed event can
be rejected instead of rolling stock backwards after a newer update has already 
been applied.

Event IDs are also remembered for a limited period so a duplicated/retried delivery
is not applied as though it were a brand-new inventory movement.

#### Retry and Backlog Handling

Outbound failures are classified and retried using increasing delays. Recoverable
failures can be persisted in a capped backlog so administrators can see that inventory
delivery is pending rather than assuming a silent request succeeded.

Backlog entries can be retried or discarded from the administrative tools when appropriate.
Successful later delivery removes the corresponding outstanding item.

#### Reconciliation and Conflict Detection

The Master can scan Child stores and compare their current stock state with the 
authoritative record. Reconciliation processes products in batches and can continue
through Action Scheduler rather than requiring a single long-running browser request.

Conflict reports can identify mismatched stock or duplicate-SKU conditions that 
need manual attention. The plugin also exposes audit/reconciliation functionality
through WP-CLI.

#### Strict Checkout Validation

A Child store can optionally validate cart quantities against the Master during 
checkout. This is intended to reduce overselling when the local storefront’s last
synchronized value is older than the authoritative stock.

Because the Master can be temporarily unreachable, the plugin includes configurable
behaviour around failure and stale cached stock snapshots. Stores should choose 
a strategy that matches whether they prefer checkout availability or strict oversell
prevention during network outages.

#### SKU Rename Handling

The plugin observes SKU metadata changes so identity can remain consistent when 
a product’s SKU is edited. Global plugin IDs provide another stable identifier used
by the sync process, reducing dependence on the assumption that a SKU can never 
change.

#### Stock History per SKU

Each store keeps a short, versioned history of stock events for every product it
syncs: local changes captured on a Child, authoritative versions stamped by the 
Master, updates applied on each store, SKU renames, and stale updates that were 
safely ignored. Every entry records the stock quantity, stock status, backorder 
setting, version, context (for example an order or a reconcile), the originating
store, and the event ID.

Look up a SKU on the Tools tab to see its current state on every connected store
side by side, plus one merged timeline. Entries with the same event ID are the same
change seen on different stores, so you can follow a sale from the store where it
happened, through the Master, to every Child that applied it. The Master shows every
enabled Child; a Child shows itself and the Master. The same lookup is available
from WP-CLI.

#### SKU Mapping Repair Tool

Sync matches products between stores by a plugin GID and by SKU, so both must identify
exactly one product. The SKU Mapping Repair Tool (Conflicts tab) scans a store for:

 * Duplicate SKUs – one SKU used by more than one product or variation.
 * Duplicate GIDs – one GID shared by more than one product, usually left behind
   by a product duplicate or import that copied product meta.
 * Missing SKUs – stock-managed products and variations with no SKU, which can never
   sync.

Duplicate SKUs and duplicate GIDs are put on a sync hold: the SKU is skipped by 
every inbound and outbound sync path until it is repaired, so an ambiguous match
can never overwrite the wrong product’s stock. Repair from the same screen by assigning
a unique SKU or issuing a new GID. Holds are released automatically once the identity
is unique again, and on the Master the released SKUs are pushed to every Child so
sync resumes. A hold can also be released manually.

On the Master, the tool also lists GID mismatches and missing products found on 
Child stores by the latest Audit or Reconcile, with a one-click push that makes 
the Child adopt the Master’s GID.

#### Failover Readiness Report

The Status tab includes a Failover Readiness Report that explains, from the store’s
live settings and health, what happens if the Master is unreachable: whether customers
can still check out, how long queued stock changes keep retrying before they need
attention, how stock drifts while stores are disconnected, how many last-known-good
stock snapshots are stored and how old they are, and the steps to recover – including
promoting a Child to Master. Each finding is graded and the report gives an overall
verdict (Ready, At risk, Not ready).

On the Master, the report also lists every Child’s checkout fallback, snapshot freshness
and backlog, reported by each Child during the regular health ping. The report can
be downloaded as a Markdown file or printed with WP-CLI.

#### Exclusions

Administrators can exclude specific SKUs from stock synchronization. Excluded products
are ignored by normal event delivery and reconciliation so local-only inventory 
is not continually overwritten.

#### Secure Signed REST Requests

Master and Child REST requests are signed using the shared-secret authentication
layer. Requests include timing/identity information and are rejected when they are
invalid, too large, outside the accepted window or fail replay/authentication checks.

The security layer also contains throttling/temporary lockout behaviour for repeated
authentication failures and remote URL validation.

Shared secrets can be rotated with a configured overlap period so a network can 
move from an old secret to a new one without requiring every in-flight request to
fail at the exact rotation second.

#### Health Monitoring

Scheduled health pings update the stored connection status for the Master/Child 
relationship. The admin interface and Site Health integration can report configuration,
connectivity, backlog and Action Scheduler concerns.

#### WP-CLI

The command base is:

    ```
    wp kitgenix-stock-sync
    ```

The command class includes status, audit/reconciliation, SKU-level actions, backlog/
conflict tooling and formatting helpers for operational use from the command line.

#### Direct Store-to-Store Data Flow

Stock events and stock-state queries are sent only between the WooCommerce sites
configured by the administrator. Kitgenix does not receive the store’s inventory
feed or act as a remote source of truth.

The shared Kitgenix admin Hub can separately request public plugin metadata from
WordPress.org, and the admin stylesheet imports Google Fonts as documented in **
External Services**. Those requests do not contain WooCommerce stock payloads.

#### Typical Uses

 * Separate retail and wholesale WooCommerce stores sharing one warehouse quantity.
 * UK and Ireland storefronts selling from the same physical stock pool.
 * Brand/domain-specific stores that must not oversell shared inventory.
 * A POS/integration updating the Master while web storefronts follow the authoritative
   result.
 * Stores that need backorder and stock-status behaviour kept consistent as well
   as the numeric quantity.

### External Services

This is a store-to-store sync plugin, so connecting to remote services is core to
how it works. It talks to two kinds of external endpoint:

**1. Your own WooCommerce stores (Master and Child)**

The plugin makes signed REST API requests directly between the WordPress/WooCommerce
sites you configure as Master and Child – it does not route data through any Kitgenix
server or third-party service. Master and Child URLs must use HTTPS (a filter allows
plain `http://` only for `localhost`/`.local`/`.test` hosts for local development).

 * **What is sent:** product SKUs; stock state (quantity, stock status, backorders,
   low stock amount, effective stock-management mode); a per-product monotonic version
   counter and timestamp (see How Stock Sync Works); and, only via the `/ping` health-
   check route, the sending store’s name and its WooCommerce/plugin version. Strict
   checkout validation additionally sends the SKUs currently in a Child’s cart to
   the Master for a live stock check.
 * **When it happens:** automatically, in real time, whenever WooCommerce itself
   changes a product’s stock (an order, refund, cancellation, REST edit, CSV import,
   or a compatible integration such as WooCommerce Square) – dispatched asynchronously
   via Action Scheduler. There is no polling interval to configure. A recurring 
   health-check ping additionally runs roughly every 15 minutes per configured store,
   and Reconcile/Audit/Manual SKU Sync send requests on demand when you trigger 
   them.
 * **Authentication:** every request carries `X-Kitgenix-Store-Id`, `X-Kitgenix-
   Timestamp`, `X-Kitgenix-Nonce`, and HMAC-SHA256 `X-Kitgenix-Signature` / `X-Kitgenix-
   Signature-V2` headers computed from a shared secret you configure on both sides–
   see Developer Reference below for the full scheme.
 * **Caching:** a last-known-good stock snapshot per SKU is cached (transient, 24
   hours) on Child stores solely to support the optional „use last-known stock” 
   checkout failure strategy; a GID  product ID lookup is cached in the object cache(
   ~1 hour) if a persistent object cache is active.

**2. WordPress.org Plugins API (admin screen only, not part of stock sync)**

The plugin includes a shared „Kitgenix hub” admin page (Kitgenix  top-level menu)
listing other Kitgenix plugins. To populate install counts, ratings, and artwork
for plugins listed there, it calls WordPress core’s own `plugins_api()` function,
which requests public plugin metadata from `api.wordpress.org`. No site data, settings,
or stock information is sent in these requests – only the public plugin slugs of
the Kitgenix plugins shown on that page.

 * Cached via transients: `kitgenix_hub_wporg_active_installs_v1`, `kitgenix_hub_wporg_ratings_v1`,`
   kitgenix_hub_wporg_media_v1` (24 hours each).
 * This lookup only runs when a logged-in administrator views the Kitgenix hub screen;
   it never runs on the front end and is unrelated to stock synchronisation.

No other third-party services, SaaS platforms, or analytics/tracking endpoints are
contacted by this plugin.

### Developer Reference

Text domain:
 kitgenix-stock-sync-for-woocommerce

Option keys:
 * `kitgenix_stock_sync_for_woocommerce_settings` * `kitgenix_stock_sync_for_woocommerce_snapshot_index`(
2.2.0+) – `{sku: cached_at}` index of last-known-good stock snapshots (capped at
1,000, entries older than 24 hours dropped), used by the Failover Readiness Report

Option schema (high-level):
 * `this_store_id`, `this_store_name`, `role`, `strict_checkout_validation`,`
schema_version` * `checkout_validation_failure_strategy` (`fail_open` | `fail_closed`
| `stale_cache`), `checkout_stale_cache_minutes` * `master` (child config): `url`,`
store_id`, `secret`, `secret_previous`, `secret_previous_expires_at`, `health` *`
children` (master config): entries with `id`, `name`, `url`, `secret`, `secret_previous`,`
secret_previous_expires_at`, `enabled`, `health` * `exclusions.skus` * `conflicts_report`:`{
generated_at, items[]}` – each item has `type`, `sku`, `gid`, `child_id`, `child_name`,`
master_value`, `child_value`, `detail` * `sku_holds` (2.2.0+): `{sku: {reason, since,
detail}}` – SKUs held out of sync by the SKU Mapping Repair Tool * `identity_report`(
2.2.0+): `{generated_at, items[]}` – each item has `type` (`duplicate_sku` | `duplicate_gid`
| `missing_sku`), `sku`, `gid`, `blocking`, `hold_skus`, `products[]`, `detail` *
Diagnostics/admin UI state: `notices`, `event_log`, `backlog` (v2: `id`, `type`,`
store_id`, `attempt`, `status`, `next_retry_at`, `payload`, `payload_meta`, `error`,`
code`), `reconcile` (v2: `mode`, `dry_run`, `differences_only`, `selected_skus`,`
processed`, `total_estimate`, `differences_found`, `pushed_count`, `started_at`,`
finished_at`, `last_batch_at`), `health` (this store’s own global health, retained
alongside the newer per-store `master`/`children[].health`)

Product/variation meta keys:
 * `_kitgenix_stock_sync_for_woocommerce_gid` – stable
cross-store identity, survives SKU renames. Never regenerated once set. * `_kitgenix_stock_sync_for_woocommerce_version`–
Master-authoritative monotonic version counter, bumped on every authoritative capture.*`
_kitgenix_stock_sync_for_woocommerce_applied_version` – last version a receiving
store actually applied; the staleness-fencing guard. * `_kitgenix_stock_sync_for_woocommerce_history`(
2.2.0+) – Stock History per SKU: the most recent stock events for this product (
default 20), each with `time`, `type` (`captured` | `authoritative` | `applied` 
| `sku_rename` | `skipped_stale`), `version`, `stock_quantity`, `stock_status`, `
backorders`, `context`, `store_id`, `event_id`, `note`. Diagnostic only; sync never
reads it.

WooCommerce’s „Duplicate” product action does not copy these keys to the new product(
2.2.0+).

REST API routes (POST):
 * `/wp-json/kitgenix-stock-sync/v1/ping` – returns `wc_version`
and `plugin_version`; on a Child (2.2.0+) also `failover`, a non-secret readiness
summary (checkout strategy, snapshot counts/ages, backlog counts) for the Master’s
Failover Readiness Report * `/wp-json/kitgenix-stock-sync/v1/event` * `/wp-json/
kitgenix-stock-sync/v1/stock` (master only; used by strict …

## Zrzuty ekranu

[⌊Status tab on a Master store, showing role, last inbound/outbound timestamps, 
the last outbound error, and a per-store Connection Health table with status, last
activity, and remote WooCommerce/plugin versions for each connected Child.⌉⌊Status
tab on a Master store, showing role, last inbound/outbound timestamps, the last 
outbound error, and a per-store Connection Health table with status, last activity,
and remote WooCommerce/plugin versions for each connected Child.⌉[

Status tab on a Master store, showing role, last inbound/outbound timestamps, the
last outbound error, and a per-store Connection Health table with status, last activity,
and remote WooCommerce/plugin versions for each connected Child.

[⌊Configuration tab: store name, Master/Child role, Strict checkout validation, 
the checkout failure strategy, last-known-stock max age, and excluded SKUs.⌉⌊Configuration
tab: store name, Master/Child role, Strict checkout validation, the checkout failure
strategy, last-known-stock max age, and excluded SKUs.⌉[

Configuration tab: store name, Master/Child role, Strict checkout validation, the
checkout failure strategy, last-known-stock max age, and excluded SKUs.

[⌊Stores tab on a Master store: the Add Child Store form plus a Configured Children
table listing each child's enabled state, URL, store ID, and shared secret.⌉⌊Stores
tab on a Master store: the Add Child Store form plus a Configured Children table
listing each child's enabled state, URL, store ID, and shared secret.⌉[

Stores tab on a Master store: the Add Child Store form plus a Configured Children
table listing each child’s enabled state, URL, store ID, and shared secret.

[⌊Tools tab: Test Connection, and the Master-only Reconcile (with scope, batch size,
dry-run and differences-only options and last-run summary), Manual SKU Sync, and
Audit Children panels.⌉⌊Tools tab: Test Connection, and the Master-only Reconcile(
with scope, batch size, dry-run and differences-only options and last-run summary),
Manual SKU Sync, and Audit Children panels.⌉[

Tools tab: Test Connection, and the Master-only Reconcile (with scope, batch size,
dry-run and differences-only options and last-run summary), Manual SKU Sync, and
Audit Children panels.

[⌊Conflicts tab: a generated report of GID mismatches, missing products, and mismatched
SKUs between Master and Child stores.⌉⌊Conflicts tab: a generated report of GID 
mismatches, missing products, and mismatched SKUs between Master and Child stores
.⌉[

Conflicts tab: a generated report of GID mismatches, missing products, and mismatched
SKUs between Master and Child stores.

[⌊Logs tab: the Event Log with level, diagnostic code, message and context per entry,
a diagnostic code reference table, and the Backlog of failed pushes awaiting retry.⌉⌊
Logs tab: the Event Log with level, diagnostic code, message and context per entry,
a diagnostic code reference table, and the Backlog of failed pushes awaiting retry
.⌉[

Logs tab: the Event Log with level, diagnostic code, message and context per entry,
a diagnostic code reference table, and the Backlog of failed pushes awaiting retry.

## Instalacja

 1. Install via Plugins  Add New and search for „Kitgenix Stock Sync for WooCommerce”,
    or upload the ZIP to `/wp-content/plugins/`.
 2. Activate the plugin (WooCommerce required – the plugin will deactivate itself if
    WooCommerce isn’t active).
 3. Open the settings under the Kitgenix hub (Kitgenix  Stock Sync).
 4. Decide which store is the Master and which are Children, then configure the connection
    on each: Master/Child URLs must use HTTPS, plus a Store ID and a shared secret.
 5. Use Test Connection to confirm each pairing before relying on it.
 6. Run a Reconcile on the Master to establish stable GIDs and push the current stock
    state to every Child.
 7. Optional: enable Strict checkout validation on Child stores and choose a failure
    strategy.
 8. Optional: server administrators can also drive setup checks and operations via 
    WP-CLI (`wp kitgenix-stock-sync status`) – see the developer reference below.

The plugin cannot sync anything until at least one Master and one Child are configured
and connected – there is no default or automatic pairing.

## Najczęściej zadawane pytania

### What is stock drift?

Stock drift happens when you update stock on one WooCommerce store but another connected
store still shows the old quantity. Left unresolved, it leads to oversells, customer
frustration, and messy fulfilment. This plugin prevents stock drift by keeping one
authoritative Master store’s stock state in sync with all Child stores.

### Does this require WooCommerce?

Yes. This plugin hooks WooCommerce product stock APIs and requires WooCommerce to
be active.

### How often does stock sync run?

There is no fixed interval or polling schedule. Stock changes are captured and sent
the moment WooCommerce itself changes stock, dispatched asynchronously via Action
Scheduler – typically within seconds. A separate recurring health-check ping runs
roughly every 15 minutes purely to keep connection status current, not to sync stock.

### What format does the feed or import file need to be?

There is no feed file or CSV import involved in the sync itself. This plugin does
not read a feed URL or file – it connects directly, over authenticated REST API 
calls, to the other WooCommerce store(s) you configure as Master or Child. If you
separately import stock into WooCommerce via CSV, that import triggers WooCommerce’s
own stock-update hooks, which this plugin then syncs like any other stock change.

### Can I sync from multiple sources?

This plugin uses a single-Master, multiple-Child model: one authoritative Master
store can push stock to any number of Child stores, but only one store may act as
Master at a time. It does not support pulling stock from multiple independent Master
sources into one store.

### How do I set up Master and Child stores?

Install and activate the plugin on the Master store and every Child store, then 
choose a role for each: one store as Master, all others as Child. On each Child,
enter the Master’s connection details (HTTPS URL, Master Store ID, and Shared Secret);
on the Master, add each Child the same way. Use Test Connection to verify the link,
then run Reconcile on the Master to establish stable GIDs and push the initial stock
state. See Quick Start above for the full walkthrough.

### Can I use more than one Master store?

No. This plugin is designed for a single authoritative Master store and one or more
children.

### Does it sync product data (title, price, images) or orders?

No. It syncs stock state only.

### What stock fields are synced?

Per SKU: stock quantity, stock status, backorders, and low stock amount.

### Is stock sync automatic, or do I need to trigger it manually?

Sync is automatic. Stock changes are captured the moment WooCommerce itself changes
stock (an order, a refund, a CSV import, a REST edit, or a third-party integration)
and dispatched asynchronously through Action Scheduler – there’s no schedule to 
configure and no file to upload. Manual tools (Reconcile, Manual SKU Sync) exist
for initial setup and troubleshooting, not for day-to-day operation.

### Does this plugin support variable products and variations?

Yes. Variations are synced by their own variation SKU, including variations that
inherit stock management from their parent product.

### Are any product types excluded?

External/Affiliate and Grouped products are skipped for stock syncing (these types
are not stock-managed in WooCommerce).

### Does this plugin work with WooCommerce High-Performance Order Storage (HPOS)?

Yes. The plugin declares compatibility with WooCommerce’s custom order tables (HPOS)
feature.

### What happens if a child store is offline?

Failed pushes are recorded in the Backlog (with reason, attempt count, and next 
retry time) and retried automatically using WooCommerce’s Action Scheduler with 
an increasing delay, up to a bounded number of attempts. Once that budget is exhausted,
the item is marked for manual attention – it will not retry forever – and can be
retried or discarded (with confirmation) from the Logs tab or WP-CLI.

### What happens if the Master is unreachable during checkout validation?

Depends on the configured failure strategy (Configuration tab): fail-open (default,
allows checkout), fail-closed (blocks checkout), or use last-known stock (applies
a recent cached snapshot if it’s fresh enough, otherwise falls back to fail-open).
A definitive out-of-stock/insufficient response from a _reachable_ Master always
blocks checkout, regardless of this setting.

### Can I see the history of stock changes for one product?

Yes. Enter a SKU under Tools  Stock History per SKU (or run `wp kitgenix-stock-sync
history <sku>`). You see the product’s current stock on every connected store and
a timeline of its recent stock events, including each event’s version, origin, and
event ID. History is recorded from 2.2.0 onwards, and a store must run 2.2.0 or 
later to include its history.

### What is a sync hold?

When the SKU Mapping Repair Tool finds a SKU used by more than one product, or a
GID shared by more than one product, it holds that SKU out of sync. Sync cannot 
tell which product an update belongs to, and guessing could overwrite the wrong 
product’s stock. Give the products a unique SKU or a new GID on the Conflicts tab
and the hold is released automatically.

### What happens if the Master store goes down?

Children keep selling from their own stock, their changes queue and retry for about
25 hours, and checkout follows each Child’s „If Master cannot be verified at checkout”
setting. The Failover Readiness Report on the Status tab spells this out for your
exact settings, shows how old each store’s last-known-good stock snapshots are, 
and lists the recovery steps.

### Where can I view the sync logs?

 * WooCommerce  Status  Logs (source: `kitgenix-stock-sync-for-woocommerce`)
 * Kitgenix  Stock Sync  Logs tab (Event Log + Backlog)

### How do I exclude specific SKUs from syncing?

Add SKUs in Configuration  Exclusions. Excluded SKUs are ignored across all sync
and tooling paths.

### Can a delayed, duplicated, or retried event corrupt my stock?

No. Every authoritative item the Master sends carries a monotonically increasing
per-product version number. A receiving store records the last version it applied
and ignores anything that arrives with an equal or older version – so a delayed 
event, a retried send, or a replayed request can never overwrite already-current
stock, regardless of delivery order. This is in addition to (not instead of) transport-
level duplicate detection via each event’s unique ID.

### How does this plugin handle WooCommerce 11.0’s failed-order stock restoration?

WooCommerce 11.0 now restores previously-reduced stock when an order moves to `failed`(
not just `cancelled`/`pending`), guarded by WooCommerce’s own „was stock actually
reduced for this order” flag so it never double-adjusts. This plugin does not reimplement
that arithmetic – it reads the resulting WooCommerce stock state after WooCommerce
has made the change and synchronises that, so the 11.0 behaviour change is handled
automatically with no plugin-specific logic required.

### Does this work with WooCommerce Square?

Yes. When Square changes a product’s stock on a WooCommerce store, it does so through
WooCommerce’s own stock-update APIs, which this plugin already listens to – no Square-
specific code is needed. If that store is the Master, the change propagates to all
Children. If it’s a Child, the change is sent to the Master, which rebuilds the 
authoritative state and fans it out to every _other_ Child (not back to the one 
that sent it), which is what prevents a feedback loop.

### Can I rotate a shared secret without breaking sync?

Yes. Use „Rotate Secret” on the Stores tab (this is an admin-UI action; there is
no WP-CLI equivalent). The old secret keeps working for a short overlap window (
default 24 hours, filterable) so you can update the other store before it expires.

### Does this plugin support WP-CLI?

Yes – see the developer reference above for the full command list (`wp kitgenix-
stock-sync status|audit|reconcile|sku|backlog|conflicts|history|identity|failover-
report`).

### Does this add any WordPress Site Health checks?

Yes. Site Health  Status includes checks for role/connection configuration, connection
health, backlog items needing attention, and Action Scheduler availability. Site
Health  Info includes a non-secret diagnostic section (role, store ID, counts, timestamps)–
shared secrets and store URLs’ credentials are never included.

### Does this plugin connect to any third-party services?

It connects directly between your own WordPress/WooCommerce sites over authenticated
REST requests – no third-party sync service is involved. The only outside call is
an optional, admin-only lookup of public WordPress.org plugin metadata (install 
counts, ratings, artwork) for the „Kitgenix hub” screen; see External Services above
for full details.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Kitgenix Stock Sync for WooCommerce” jest oprogramowaniem open source. Poniższe
osoby miały wkład w rozwój wtyczki.

Zaangażowani

 *   [ Kitgenix ](https://profiles.wordpress.org/kitgenix/)

[Przetłumacz wtyczkę “Kitgenix Stock Sync for WooCommerce” na swój język.](https://translate.wordpress.org/projects/wp-plugins/kitgenix-stock-sync-for-woocommerce)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/kitgenix-stock-sync-for-woocommerce/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/kitgenix-stock-sync-for-woocommerce/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/kitgenix-stock-sync-for-woocommerce/)
przez [RSS](https://plugins.trac.wordpress.org/log/kitgenix-stock-sync-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 2.2.0 (30 October 2026)

 * Fix: Fixed a stock sync race that could oversell. Children previously sent their
   absolute stock quantity on every change, and the Master applied it with a plain
   overwrite, so two near-simultaneous sales across stores could lose one of the
   two decrements. Children now send a delta for every order-driven stock change,
   with an idempotency key so a retried delivery is never applied twice, and the
   Master applies each one atomically instead of overwriting the quantity outright.
   Stores not yet updated keep working as before via the same absolute quantity,
   still included alongside the new delta information.
 * New: Added a Site Health check that detects Kitgenix MultiStore Sync for WooCommerce
   running with its own inventory sync enabled, which would otherwise write stock
   twice and can create a feedback loop between stores.
 * New: Stock History per SKU. Each store records a versioned history of stock events
   per product (captured, authoritative, applied, SKU rename, stale update ignored).
   Look up a SKU on the Tools tab to see its current state on every connected store
   and one merged timeline, linked by event ID. Also available as `wp kitgenix-stock-
   sync history <sku>`.
 * New: SKU Mapping Repair Tool on the Conflicts tab. Scans for duplicate SKUs, 
   duplicate GIDs and stock-managed products without a SKU. Duplicate SKUs and GIDs
   are held out of sync until repaired, so an ambiguous match cannot overwrite the
   wrong product. Assign a unique SKU or issue a new GID from the same screen; holds
   are released automatically once fixed, and the Master re-pushes released SKUs
   to every Child. Also available as `wp kitgenix-stock-sync identity`.
 * New: Failover Readiness Report on the Status tab. Explains what happens if the
   Master is unreachable for this store’s exact settings – checkout behaviour, the
   retry window for queued changes, stock drift, the age of last-known-good stock
   snapshots, and recovery steps – with an overall verdict. On the Master it also
   lists every Child’s readiness. Download it as Markdown or run `wp kitgenix-stock-
   sync failover-report`.
 * Improved: Products created with WooCommerce’s „Duplicate” action no longer copy
   the original product’s GID, version counters or stock history, which previously
   made both products share one sync identity.
 * Fix: When a Child matches a product by SKU but the product carries a different
   GID, it now resets that product’s applied version as it adopts the Master’s GID,
   so later updates are no longer ignored as stale.
 * Fix: A store promoted from Child to Master now continues each product’s version
   counter from the version it last applied, so the other Children accept its updates
   instead of ignoring them as stale.
 * Fix: The shared „Kitgenix” admin menu was being registered immediately during`
   plugins_loaded`, instead of on the `admin_menu` hook, which could trigger a „
   translation loading triggered too early” notice on sites running other Kitgenix
   plugins. It is now only registered on `admin_menu`, as intended.
 * Fix: The health-ping and event-log-pruning cron schedules were set up during `
   plugins_loaded`, before Action Scheduler’s data store is guaranteed to be ready,
   which could trigger „called before the Action Scheduler data store was initialized”
   notices. Scheduling is now deferred to `init`.
 * Improved: Raised the minimum PHP version to 8.2 (`Requires PHP: 8.2`).
 * Improved: Tested up to WordPress 7.4 and WooCommerce 11.2.1, and reviewed for
   compatibility with PHP 8.2 to 8.5. The full codebase passes syntax checks on 
   PHP 8.5 and a PHPCompatibility scan for PHP 8.2–8.5, and uses no dynamic properties
   or functions deprecated in PHP 8.2–8.5.
 * Improved: Declared compatibility with the WooCommerce Cart and Checkout blocks(`
   cart_checkout_blocks`), so WooCommerce no longer lists the plugin as possibly
   incompatible in the Checkout block editor.
 * Fix: Strict checkout validation on Child stores now also runs on the WooCommerce
   Checkout block. It was hooked only to the classic checkout’s `woocommerce_after_checkout_validation`,
   so stores using the Checkout block (the WooCommerce default) skipped the live
   Master stock check. The same check and failure strategies now run on Store API
   checkout via `woocommerce_store_api_checkout_update_order_from_request`, and 
   failures are shown as a checkout error notice.
 * Dev: `/ping` on a Child now returns a `failover` readiness summary, and `/stock-
   state` accepts `include_history`. New filter `kitgenix_stock_sync_for_woocommerce_history_limit`,
   new diagnostic code `kss_sku_held`, settings schema version 3.
 * Dev: Uninstall now also removes the Stock History product meta and the snapshot
   index option.
 * Security: Store-to-store requests now carry an additional signature that also
   covers the HTTP method and REST route, so a captured request cannot be replayed
   against a different endpoint. Once a store has sent the new signature, requests
   from it without the new signature are rejected, while stores still running an
   older version keep syncing until they are updated.
 * Security: Request authentication now runs in each REST route’s `permission_callback`,
   so WordPress enforces it before any endpoint code runs.
 * Dev: `Kitgenix_Stock_Sync_For_WooCommerce_Security::sign_headers()` now takes
   the target endpoint URL as a fourth argument.
 * Dev: Removed the PluginScore verification code from the readme, as Kitgenix Plugin
   Score has been discontinued.
 * Dev: Bumped the version to 2.2.0 across the plugin.
 * Documentation: Rewrote the readme’s Description section as plain text and moved
   the feature list into Other Notes, so the plugin directory no longer truncates
   the Description for exceeding the 2,500-character limit.
 * Documentation: Regenerated the `.pot` translation template for 2.2.0.
 * Documentation: The readme changelog now lists only the current release. The full
   release history is in `CHANGELOG.md`.

Full release history is available in the plugin’s `CHANGELOG.md` file.

## Meta

 *  Wersja **2.2.0**
 *  Ostatnia aktualizacja **2 tygodnie temu**
 *  Włączone instalacje **Mniej niż 10**
 *  Wersja WordPressa ** 6.0 lub nowszej **
 *  Testowano do **7.4**
 *  Wersja PHP ** 8.2 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/)
 * Tagi
 * [Backorders](https://pl.wordpress.org/plugins/tags/backorders/)[inventory sync](https://pl.wordpress.org/plugins/tags/inventory-sync/)
   [multistore](https://pl.wordpress.org/plugins/tags/multistore/)[stock sync](https://pl.wordpress.org/plugins/tags/stock-sync/)
   [woocommerce](https://pl.wordpress.org/plugins/tags/woocommerce/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/kitgenix-stock-sync-for-woocommerce/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

[Twoja opinia](https://wordpress.org/support/plugin/kitgenix-stock-sync-for-woocommerce/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/kitgenix-stock-sync-for-woocommerce/reviews/)

## Zaangażowani

 *   [ Kitgenix ](https://profiles.wordpress.org/kitgenix/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/kitgenix-stock-sync-for-woocommerce/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://www.paypal.com/donate/?hosted_button_id=KALF36K6JJ9B2)