WooCommerce automatically decreases/increases product stock on order related actions, for example, stock is reduced if order status changes to “Completed”. With Stock Triggers for WooCommerce plugin you can control which actions automatically decrease or increase your product stock.
Stock Triggers
- Order status: Cancelled
- Order status: Completed
- Order status: Failed
- Order status: On hold
- Order status: Pending payment
- Order status: Processing
- Order status: Refunded
- Payment complete
- Custom order statuses (added automatically)
- Custom triggers
Stock Triggers Options
Settings are located in “WooCommerce > Settings > Stock Triggers”.
Decrease Stock
Stock will be decreased only once, on whichever trigger is called first.
- Decrease Stock
- Enables/Disables “Decrease Stock” section.
- Default:
no
- Default:
- Triggers
- Possible values: Order status: Cancelled; Order status: Completed; Order status: Failed; Order status: On hold; Order status: Pending payment; Order status: Processing; Order status: Refunded; Payment complete.
- Default:
Payment complete; Order status: Completed; Order status: Processing; Order status: On hold
- Default:
- Custom triggers
- Custom triggers for stock decrease. One action per line. E.g.:
woocommerce_order_status_completed
- Default: None
- Advanced: Force order stock update
- Enable this if you are having issues with order stock not updating.
- Default:
no
- Default:
Increase Stock
Stock will be increased only once, on whichever trigger is called first. Please note that only stock which was previously decreased can be increased.
- Increase Stock
- Enables/Disables “Increase Stock” section.
- Default:
no
- Default:
- Triggers
- Possible values: Order status: Cancelled; Order status: Completed; Order status: Failed; Order status: On hold; Order status: Pending payment; Order status: Processing; Order status: Refunded; Payment complete.
- Default:
Order status: Cancelled; Order status: Pending payment
- Default:
- Custom triggers
- Custom triggers for stock increase. One action per line. E.g.:
woocommerce_order_status_cancelled
- Default: None
- Advanced: Force order stock update
- Enable this if you are having issues with order stock not updating.
- Default:
no
- Default:
General Options
- Admin new order
- Stock action performed when admin creates a new order and adds products via “Add item(s) > Add product(s)” buttons. Possible values: Default; Increase; Decrease.
- Default:
Default
- Default:
Advanced Options
- Debug
- Will add a log to “WooCommerce > Status > Logs”.
- Default:
no
- Default:
Gustavo –
the plugin is excellent, very easy to use and very useful, also the developer is a very kind person willing to help with any problems you may have.
Tom Anbinder –
Thank you, Gustavo!
george –
Can you make it to modify stock levels on for certain product categories?? This is the only element missing from this great plugin
Tom Anbinder –
Hi George,
Thank you.
Sure, I can add it to the plugin. Just to be sure – you mean apply stock triggers only if there are some selected products in the order, is that correct?
George Obonyo –
Yes Tom,
” apply stock triggers only if there are some selected products in the order, is that correct?”
For example, I have product category rentals. The auto restock trigger should only apply to orders of this product category (Rentals) but no others.
Please let me know in my email when this update is available, either in the free or pro version. I will surely make my purchase then. Its a very useful plugin
Tom Anbinder –
Hi George,
Ok, got it. Please give me a couple of days or so to implement it. Will get back to you asap.
Tom Anbinder –
Hi George,
As promised, we’ve released a new plugin version (v1.6.0) today, where I’ve added “Require products” and “Require product categories” options to our plugin (in “WooCommerce > Settings > Stock Triggers”). Please give it a try and let me know what you think.
P.S. You may also want to uncheck the “Remove standard triggers” checkbox(es) – in case if you want standard WooCommerce stock actions to be triggered as well.
lordvoldemont (verified owner) –
The plugin is usefull, the author is kind and warmhearted.
He replies my question very quickly, and help me solved problems by hand.
I have bought the Pro version. Thanks bro.
Tom Anbinder –
Thank you!
Nik (verified owner) –
Excellent plugin and very responsive developer. Highly recommended!
Tom Anbinder –
Thank you, Nik!