WooCommerce Cart Stock Reducer

Created by: James Golovich

Rating:
Downloaded: 33k times

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

Screenshots

    Categories

    Get New Themes & Resources