plugin-icon

WooCommerce Cart Stock Reducer

Allow WooCommerce inventory stock to be reduced when adding items to cart and/or expire items from the cart
Ratings
4.7
Last updated
June 13, 2022
Version
3.90
Active installations
1K
WooCommerce Cart Stock Reducer

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

Freeon Creator plan
Active installations
1K
Tested up to
5.8.9
This plugin is available for download to be used on your WordPress self-hosted installation.