Home › Forums › Order Status Rules for WooCommerce › Add “Stock status” condition?
- Support forum for the Order Status Rules for WooCommerce.
- This topic has 3 replies, 2 voices, and was last updated 11 months, 1 week ago by Tom Anbinder.
- April 14, 2022 at 11:07 am #85588VDGuest
I wonder if you could add a “Stock status” condition? I would like to change order status based on stock status, for example orders that are “in stock” are completed, orders that are “on backorder” are changed to on hold.
I think this could be very useful for people who sell custom products which go on backorder.
Thanks for your consideration.April 14, 2022 at 12:45 pm #85589Tom AnbinderModeratorPlugin Support
Sure, I can do that.
So the plugin will go through all products in the order and check if their current stock status is “in stock” or “on backorder”, is that correct? Also, do all products in the order have to be, e.g., “in stock”, or at least one product?April 14, 2022 at 1:05 pm #85590VDGuest
Thanks for the fast reply.
Your behaviour description is correct, check the stock status of each product on an order, and then have condition filters to change the order status based on the result.
I think the best way to make sure this can work in all scenarios, including orders that contain both stock status would be to have 3 condition filters.
Filter 1: All products on order are “in stock”
Filter 2: All products on order are “on backorder”
Filter 3: Order contains a mix/more than 1 stock status
What do you think?
I look forward to buying this plugin as soon as this is added as it will save me so much time each day by allowing me to automate a lot of order processing.April 14, 2022 at 6:01 pm #85591Tom AnbinderModeratorPlugin Support
Ok, please update the plugin to the latest version 2.7.0. Now you will find a new “Condition” in each rule’s settings – “Product stock status”. And I’ve added a checkbox there so you could choose if you want to require all products in the order to match the selection (vs. at least one product). Please give it a try and let me know what you think.
- You must be logged in to reply to this topic.