Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/workundo/woocommerce-inventory-reservation/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A transaction-safe WooCommerce cart inventory reservation plugin designed to securely manage temporary stock allocations without modifying WooCommerce core code.
Features
- Transaction Safe: Uses native InnoDB row-level locking to completely eliminate race conditions and overselling.
- Cart Synchronization: Hooks natively into cart additions, adjustments, removals, and abandonments.
- Variation Aware: Automatically detects if a variation manages its own stock or defers to the parent product.
- Action Scheduler Integration: Clean asynchronous expiration sweeps natively utilizing
as_schedule_recurring_action. - Idempotency Built-In: Payment hook retries and failed callbacks will safely exit instead of creating double allocations.
Architecture
See docs/architecture.md for a complete overview.
Setup
- Zip the plugin folder.
- Upload via WordPress Admin -> Plugins -> Add New.
- Activate the plugin.
- Settings can be configured under
WooCommerce -> Reservations.
Requirements
- PHP 8.1+
- WordPress 6.6+
- WooCommerce 8.0+
Security & Concurrency
See docs/security.md and docs/scalability.md for our lock management strategy against race conditions.