• Resolved Siddharth

    (@siddhu)


    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)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    Sorry, we didn’t receive any notification about this thread ??

    Can you try to add this code to line 231 in apg-sms.php and try it again:
    add_action( 'woocommerce_order_status_on-hold', 'apg_sms_procesa_estados', 10 );

    Thank you.

    Kind regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Configure On-Hold order SMS’ is closed to new replies.