Before you complete order status setup, you may want to edit core statuses and add
As you can see in the example code the conditions of the statuses are determined in the if statement, because you want to apply this without a ...
... theme's functions.php file as this will be wiped entirely when you update the theme. You could also change the “Completed” status to be another order status, ...
The custom function to get the number of completed orders by user id is based on get_order_count( &$customer );. /** * Return the number of ...
Order status,; Billing address,; Shipping address,; Purchase total, and; Actions. To change these columns:.
The linked answer code will not work for what you want. Instead try the following: // Admin orders list: bulk order status change dropdown ...
For example, you may want to auto-complete virtual orders, or even those with ...
__( ' Change Status To Order Received','woocommerce' ); } return ...
this function is no longer working right after one of the Woo Commerce updates?
Looking through the code there is a very relevant example: function woocommerce_paying_customer( $order_id ) { $order = new WC_Order( $ order_id ); if ...