Woocommerce - change order status if notes are not empty

Viewed 22

I need to manually check orders if the customer writes a note. I have an API connection with my warehouse, so I have to stop these orders before they go through in order to check them. I created a custom order status: "in-review", But I need a code to change these orders to in-review status.

Orders with cod payment and a note have to be changed to in-review right after submission. Orders with stripe or bacs payment method and a note have to be changed to in-review after being marked as paid.

I found this thread Changing Woocommerce Order Status based on order notes I tried to change $order_note->content == "Order verified" to isset($order_note), but it is not working. But still doesn't include the condition for the payment method.

0 Answers
Related