
前言介紹
- 這款 WordPress 外掛「Kitgenix Stock Sync for WooCommerce」是 2026-02-13 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-02-19,距離現在已有 7 天。
- 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.1 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
kitgenix |
外掛標籤
sync | stock | inventory | multi store | woocommerce |
內容簡介
### 總結
運行多個 WooCommerce 商店常常會造成相同的運營問題:庫存漂移。透過 Kitgenix Stock Sync for WooCommerce,這個外掛提供了一個安全、實用的模式來解決這個問題,讓一個 Master 商店持有權威性的庫存狀態,供應一個或多個 Child 商店接收更新。
### 問題與答案
1. 這個外掛主要解決什麼問題?
- 答:Kitgenix Stock Sync for WooCommerce 主要解決運行多個 WooCommerce 商店時庫存漂移問題。
2. 這個外掛的設計原則是什麼?
- 答:這個外掛設計為輕量級,不使用第三方 SaaS,也不使用自訂數據庫表,而是使用 WooCommerce 和 WordPress 的原始元素來同步庫存。
3. 這個外掛同步哪些庫存狀態?
- 答:該外掛同步每個 SKU 的庫存狀態,包括庫存數量、庫存狀態、可訂購的庫存量和低庫存量。
4. 如何處理 SKU 變更同步?
- 答:這個外掛支持 SKU 變更同步,透過維護一個內部穩定的識別符號(“GID”),當 Master 上的 SKU 變更時,插件會發出一個 sku_rename 事件,使用 GID 讓 Child 商店可以安全地映射更新。
5. Child 商店可以啟用什麼功能?
- 答:Child 商店可以選擇啟用 Strict checkout validation,這在結帳過程中提供嚴格的驗證。
這些問題與答案可以使用 HTML 的項目符號清單(bulleted list)來呈現。
原文外掛簡介
Running multiple WooCommerce stores often creates the same operational problem: stock drift.
You update stock on one site, but another site still shows the old quantity. That can lead to oversells, customer frustration, and messy fulfilment.
Kitgenix Stock Sync for WooCommerce solves this with a secure, practical model:
One Master store holds the authoritative stock state.
One or more Child stores receive updates from the Master.
Stores communicate over signed REST requests (HMAC SHA-256) with timestamp + nonce replay protection.
This plugin is designed to be lightweight:
– No third-party SaaS.
– No custom database tables.
– Uses WooCommerce + WordPress primitives (REST API, options, product meta, transients, WooCommerce logging, Action Scheduler).
What this plugin syncs
Stock state is synced per SKU, including:
– stock quantity
– stock status
– backorders
– low stock amount
Note: this plugin is focused on inventory syncing. It does not sync pricing, product content, images, or orders.
How it works (high level)
1) Stock changes are captured on each store using WooCommerce stock hooks.
2) Children send events to the Master; the Master applies incoming events locally and then pushes authoritative stock state out to all enabled children.
3) The Master can also run a Reconcile operation to push stock state for all products in batches.
SKU rename sync (important)
This plugin supports SKU renames by maintaining an internal, stable identifier (a “GID”) stored as product meta:
– _kitgenix_stock_sync_for_woocommerce_gid
When SKUs change on the Master, the plugin emits a sku_rename event using the GID so child stores can map the update safely.
Tip: Run Reconcile on the Master after initial setup. Reconcile establishes stable GIDs for products that don’t already have one, which makes SKU rename sync reliable.
Strict checkout validation (Child)
Child stores can optionally enable Strict checkout validation:
– During checkout, the child queries the Master’s stock for SKUs in the cart.
– If the Master reports the SKU is out of stock or insufficient (with backorders disabled), checkout is blocked.
– If the Master can’t be reached, validation is fail-open to avoid breaking checkout.
Exclusions
You can exclude SKUs (comma or new line separated). Excluded SKUs are ignored for:
– outbound stock events
– reconcile batches
– strict checkout validation
– audit checks
Tools & diagnostics included
From the plugin admin screen:
– Test Connection (ping the configured store)
– Reconcile (Master): push authoritative stock state to all children in batches
– Manual SKU Sync (Master): push a specific set of SKUs to all children
– Audit Children (Master): query each child’s local stock fields and compare against the Master
– Event Log + Backlog: see recent events and failed pushes, and clear logs when needed
– Status: last inbound/outbound health timestamps and last error message
Quick Start
Install and activate the plugin on the Master and all Child stores.
Choose your role on each store:
Master: one store
Child: all other stores
On the Child store: set the Master connection (Master URL, Master Store ID, Shared Secret).
On the Master store: add each child (Child URL, Child Store ID, Shared Secret).
Use Tools → Test Connection.
On the Master store: run Tools → Reconcile to establish stable GIDs and push initial state.
Optionally enable Strict checkout validation on children.
Developers
Text domain:
kitgenix-stock-sync-for-woocommerce
Option key:
– kitgenix_stock_sync_for_woocommerce_settings
Option schema (high-level):
– this_store_id, this_store_name, role, strict_checkout_validation
– master (child config): url, store_id, secret
– children (master config): entries with id, name, url, secret, enabled
– exclusions.skus
– Diagnostics/admin UI state: notices, event_log, backlog, reconcile, health
Product meta key:
– _kitgenix_stock_sync_for_woocommerce_gid
REST API routes (POST):
– /wp-json/kitgenix-stock-sync/v1/ping
– /wp-json/kitgenix-stock-sync/v1/event
– /wp-json/kitgenix-stock-sync/v1/stock (master only; used by strict checkout validation)
– /wp-json/kitgenix-stock-sync/v1/stock-state (used by audit)
Authentication headers:
– X-Kitgenix-Store-Id
– X-Kitgenix-Timestamp
– X-Kitgenix-Nonce
– X-Kitgenix-Signature
Signatures:
– HMAC SHA-256 over: timestamp + "\n" + nonce + "\n" + request_body
– Timestamp skew allowed: 5 minutes
– Nonce replay protection stored via transients
Action Scheduler hooks:
– (Action group: kitgenix-stock-sync)
– kitgenix_stock_sync_for_woocommerce_process_event
– kitgenix_stock_sync_for_woocommerce_push_to_store (async enqueue)
– kitgenix_stock_sync_for_woocommerce_retry_send_to_master
– kitgenix_stock_sync_for_woocommerce_retry_push_to_store
– kitgenix_stock_sync_for_woocommerce_reconcile_batch
Admin capability:
– manage_woocommerce
Admin nonces:
– kss_save_config
– kss_save_connection
– kss_save_children
– kss_test_connection
– kss_tools
– kss_logs
Filters:
– kitgenix_stock_sync_for_woocommerce_parent_menu_slug (change the parent menu slug; default: kitgenix)
Transients (dynamic keys):
– kitgenix_stock_sync_for_woocommerce_do_activation_redirect (30 seconds)
– kitgenix_stock_sync_for_woocommerce_kss_nonce_{md5(store_id|nonce)} (nonce replay protection, 10 minutes)
– kitgenix_stock_sync_for_woocommerce_kss_seen_{md5(event_id)} (duplicate event detection, ~2 hours)
– kitgenix_stock_sync_for_woocommerce_kss_debounce_{md5(key)} (debounce, ~2 seconds)
– kitgenix_stock_sync_for_woocommerce_kss_old_sku_{post_id} (SKU rename helper, 60 seconds)
– kitgenix_stock_sync_for_woocommerce_kss_audit_result_{user_id} (stores last audit result in wp-admin, 10 minutes)
Object cache (if persistent object cache is enabled):
– Cache group: kitgenix_stock_sync
– Key: kitgenix_stock_sync_for_woocommerce_kss_gid_{md5(gid)} (GID → product ID lookup, ~1 hour)
Internal action hooks (called directly, but can be hooked):
– kitgenix_stock_sync_for_woocommerce_process_order_processing
External Services
This plugin includes a shared “Kitgenix hub” component in wp-admin which may fetch publicly available plugin metadata from WordPress.org using WordPress core’s plugins_api() function.
Caching:
– Transient: kitgenix_hub_wporg_active_installs_v1
– Transient: kitgenix_hub_wporg_ratings_v1
This plugin does not otherwise connect to third-party services as part of its stock sync. It does make REST requests between your own WordPress sites (Master and Child stores). These requests may include:
– product SKUs
– stock state (quantity/status/backorders/low stock)
Strict checkout validation on children sends SKUs in the cart to the Master for stock verification.
Security & Privacy
No tracking cookies are added by this plugin.
Admin actions are protected with nonces and capability checks.
REST requests are authenticated using HMAC signatures with timestamp + nonce replay protection.
Shared secrets are stored in the plugin settings option (kitgenix_stock_sync_for_woocommerce_settings). Treat secrets like passwords.
Uninstall
This plugin removes its settings and plugin-only transients on uninstall. It does not remove WooCommerce product meta or Action Scheduler records.
Removed on uninstall:
– Option: kitgenix_stock_sync_for_woocommerce_settings
– Site option: kitgenix_stock_sync_for_woocommerce_settings
– Transients by prefix: kitgenix_stock_sync_for_woocommerce_ and kss_ (covers dynamic keys such as nonce/seen/debounce helpers)
Multisite:
– Removes per-site options and transients for each site.
If you want to remove all plugin data, you can also delete:
– the product meta _kitgenix_stock_sync_for_woocommerce_gid (if you no longer need SKU rename mapping)
Support Development
If this plugin saves you admin time or helps prevent oversells across multiple stores, you can support ongoing development here:
https://buymeacoffee.com/kitgenix
Credits
Built with ❤︎ by @kitgenix – https://kitgenix.com
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Kitgenix Stock Sync for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Media from FTP 》從透過 FTP 上傳的檔案註冊到媒體庫, , 此外採取縮略圖的方式, 此外創建圖片、影片、音訊的元數據, 修改日期/時間, 使用 DateTimePicker jQuery 外掛程式進行...。
WP Remote Users Sync 》如果你運營多個網站且想要保持使用者分離,但仍然想要自動且安全地同步他們的特定使用者操作,那麼 WP Remote Users Sync 是你需要使用的外掛程式。, , 概述...。
WP Fusion Lite – Marketing Automation and CRM Integration for WordPress 》WP Fusion Lite 可將 WordPress 使用者與主流的 CRM 和行銷自動化系統同步,將使用者設定檔與 CRM 聯絡人記錄同步,並根據 CRM 標籤保護網站內容。, , 特點:...。
Photo Engine (Media Organizer & Lightroom) 》媒體組織者。現在您可以在資料夾和集合中整理照片。從這些集合中,您可以輕鬆地創建相冊,而不需要特定的外掛程式。, 與 Lightroom 同步。上傳並保持您的照片...。
HFD ePost Integration 》此外掛可將 WordPress 網站的資料同步至 HFD 物流系統。, 此外掛提供單向介面,允許在 WooCommerce 中發送(同步)訂單、取消訂單和追蹤訂單至 HFD。, 您可以...。
Auto YouTube Importer 》這款 WordPress 外掛可以同步 YouTube 頻道(或播放清單)至你的網站並將其視作貼文。使用 YouTube Importer 外掛,您可以輕鬆將 YouTube 影片匯入 WordPress...。
WP Multisite User Sync/Unsync 》WordPress Multisite User Sync/Unsync外掛可以在WordPress Multisite網路中將使用者從一個網站(部落格)同步/取消同步到其他網站(部落格)。, 功能, , 同...。
Bizapp for WooCommerce 》此外掛可將您的Bizapp產品同步至WooCommerce,並將WooCommerce訂單傳送至您的Bizapp帳戶。。Media Cloud Sync 》### 總結:, Media Cloud Sync 是一個創新的 WordPress 外掛程式,革命性地改變了媒體互動方式,並提升網站效能。透過這個外掛,您可以將檔案、媒體和圖片從 ...。
CiviCRM Member Sync 》CiviCRM Member Sync 可以透過授予 WordPress 用戶角色或權限,使其能夠與 CiviCRM 成員同步,從而實現在您的網站上具有只針對當前會員開放的內容,這些當前...。
KiotViet Sync 》我們支援您使用KiotViet Sync 插件將資料從KiotViet同步至WordPress網站。, 讓您更輕鬆地接觸線上客戶。, 更輕鬆地創建WordPress購物網站。, 無需複雜的操作...。Database Sync 》警告:此外掛針對進階使用者。如果使用不當可能會刪除所有內容!, 在開發、測試與正式伺服器之間保持資料庫同步可能令人煩惱。此外掛可讓您透過分享秘密金鑰...。
WooMS 》整合 WooCommerce 和 MoySklad http://moysklad.ru (適用於俄羅斯), 將 MoySklad 應用程式 (貿易、批發、零售、倉庫、製造、CRM) 和 WooCommerce (WordPress)...。Object Sync for Salesforce 》對於任何支援的 WordPress 內容類型 (例如文章、頁面、使用者或任何在您的安裝中支援的自訂內容類型),您可以指定 Salesforce 物件,當 WordPress 中的數據被...。
CiviCRM Profile Sync 》WordPress 整合, 在最簡單的情況下,CiviCRM Profile Sync 插件可將 WordPress 使用者設定檔的「名字」、「姓氏」、「暱稱」、「電子郵件地址」和「網站」欄...。
