Disable automatic order completion
-
Suddenly, since the last 2 days, all my e-store orders status is getting automatically marked as ‘Completed.’ I want them to be marked manually only. So, please give me the solution to resolve this problem?
On one of the thread, I found this code to prevent any orders from autocompleting. So, is the right solution to my problem? If Yes, then please guide me where I should add the following code in my site page?
/*prevent any orders from autocompleting*/ /* */ add_action( 'woocommerce_thankyou', 'stop_auto_complete_order' ); function stop_auto_complete_order( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); $order->update_status( 'processing' ); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Disable automatic order completion’ is closed to new replies.