WooCommerce Cart Stock Reducer

plugin banner

Allow WooCommerce inventory stock to be reduced when adding items to cart

Author:James Golovich (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:5.8.4
Plugin version:3.90
Added to WordPress repository:19-02-2015
Last updated:13-06-2022
Rating, %:94
Rated by:35
Plugin URI:
Total downloads:32 653
Active installs:1 000+
plugin download
Click to start download

WooCommerce doesn’t remove an item from inventory until someone actually buys
that item. This plugin can reduce the “virtual” stock quantity of an item without actually modifying the item
inventory, so there should be no problems with missing data if somehow the cart data is deleted. This plugin isn’t for
everyone, but people that are selling specialty items will find it useful and hopefully eliminate some customer
support nightmares.

The plugin can automatically expire items from the cart (disabled by default) with a configurable expiration time.
Expiration times are plain english using whatever types php’s strtotime can support (Examples: 10 minutes, 1 hour, 6 hours, 1 day)
Per item expiration time can be configured by adding a Custom Field to each item using the configured
‘Expire Custom Key’ (default name is ‘csr_expire_time’).

Expiration can be enabled independently of reducing the cart stock, so this plugin can also be used to expire items at
other intervals than the default WooCommerce cart/session expiration.

An issue was opened on the WooCommerce issue tracker regarding
this problem and someone posted on Facebook about it, which caught my attention.

Please submit bug reports, feature requests, and pull requests via the GitHub repository

TODO

  • Look into adding ajax and mini-cart notices
  • Take some screenshots for wordpress.org
  • Add some kind of indicator to cart so you know what items will expire

Thanks


FAQ
ChangeLog