• I just looked through all the documentation again. I have turned on the processing order email and it does work. Now the question is …can I override WooCommerce to set EVERY order to processing so the user does not have to do it manually if it is put on hold or pending. This user gets paid by mail net 30 and does not rely on the payment gateways. She would like ALL orders to be set to processing without having to do it herself.

    Can that be done?

    Thanks, Linda

Viewing 1 replies (of 1 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi Linda!

    You could use some code to set all orders to processing-status, this should work for you:

    add_action( 'woocommerce_thankyou', 'rs_wc_auto_process_order' );
    function rs_wc_auto_process_order( $order_id ) {
    	
    	// Only continue if have $order_id
    	if ( ! $order_id ) {
    		return;
    	}
        
        	// Get order
        	$order = wc_get_order( $order_id );
        	
        	// Update order to processing status
        	$order->update_status( 'processing' );
        	
    }

    This custom code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added – such as My Custom Functions or Code Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.

    For further reading: https://metorik.com/blog/autocomplete-all-the-orders-in-woocommerce

    I hope this helps.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘override status settings – can I set ALL new orders to processing’ is closed to new replies.