Configure On-Hold order SMS
-
Hello Team,
I tried this code to keep all new order On-Hold.
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' ); function custom_woocommerce_auto_complete_order( $order_id ) { global $woocommerce; if ( !$order_id ) return; $order = new WC_Order( $order_id ); $order->update_status( 'on-hold' ); }
its working, all new order (Paid, COD) gets On-Hold.
But the SMS trigger from processing section, not On-Hold SMS.
It must send the On-Hold sms to customer.Can you please check this.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Configure On-Hold order SMS’ is closed to new replies.