• Resolved hakhan201

    (@hakhan201)


    Hello,

    Thank you for building such an awesome plugin.

    I need new order status to be set as “pending payment” instead of “processing” please. How can I do so?

    As using this plugin sets new orders to “processing”.

    Thank you

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nitin Prakash

    (@nitin247)

    Hello @hakhan201,

    This plugin does not support the feature at this moment. I am attaching a code snippet that should work. You may try adding the code to your theme’s functions.php

    add_action( ‘woocommerce_thankyou’, ‘wpowp_change_order_status’ );

    function wpowp_change_order_status( $order_id ){
    if( ! $order_id ) return;
    $order = wc_get_order( $order_id );

    // Status without the “wc-” prefix
    $order->update_status( ‘pending’ );
    }

    Hello,

    I am trying to do the exact same thing. Instead of order going directly to Processing, i want it to go to On-Hold.

    I tried the above code to see if it changes to “pending” and then i would edit it to “on-hold”, but the above code snippet doesn’t change the order status to ‘pending’. It remains as ‘processing’.

    any other suggestions?

    Plugin Author Nitin Prakash

    (@nitin247)

    add_action( ‘woocommerce_thankyou’, ‘wpowp_change_order_status’ );
    function wpowp_change_order_status( $order_id ) {
    global $woocommerce;
    if ( !$order_id )
    return;
    $order = new WC_Order( $order_id );
    $order->update_status( ‘on-hold’ );
    }

    The above code placed in active theme functions.php should work

    Hi, great plugin… similar to above default I get is ‘Pending Payment’ can it be changed to ‘processing’ on receipt of new order. Tried to replace these status in code above but not updating. Thanks in advance!

    • This reply was modified 4 years, 3 months ago by mmcdermott001.
    Plugin Author Nitin Prakash

    (@nitin247)

    Hello @mmcdermott001,

    If you require I can customize the plugin for your requirement.
    Please send me a mail [email protected]

    Thanks in advance

    Hi there,

    We have been using the plugin for some time, and we are sure it used to set the order status to processing?

    Orders are now only going to “pending payment” when we think they were going to “Processing”

    We need it to go automatically to “processing” so the warehouse software gets the order, it won’t if it thinks its pending a payment..

    Then they can send products, so need it to go direct to “processing”

    If possible? Cheers Paul (we are sure it did lol) but may be wrong…

    Plugin Author Nitin Prakash

    (@nitin247)

    @blueskycreative
    @mmcdermott001

    I have changed the plugin core order status after payment will be Processing instead of Pending, it was a bug.

    Thanks, I hope is solves the purpose now

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need to set Status to “pending payment” instead of “Processing”.’ is closed to new replies.