• Resolved misharnet

    (@misharnet)


    How to set status pending no matter what.
    Client wants me to set always status pending and then he manually change it to completed or processing.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ross V. a11n

    (@rossviviano)

    Automattic Happiness Engineer

    Hi there!

    In this case, you’ll want to look into a WooCommerce extension called Order Status Control.

    Alternatively, this snippet may be of use ??

    Best,

    Ross

    Aren’t all orders started in Pending? Am I missing something?

    Thread Starter misharnet

    (@misharnet)

    @rossviviano:
    Thanks for you reply. I have Order Satus Control, but it controls auto-completed process … But Woo Wallet will show credit amount in user’s profile if payment are apid by user. My Client wants no amount to be shown in Woo Wallet until he approve it …

    @stefsternyc:
    No wander you are missing something, because client wants a very strange thing.
    Whem user’s found are paid and verified on PayPal or other similar service, it is absolutely normal that Woocommerce set it to processing and then completed status.
    But client still wants that he is the one that will approve wallet amont and not to be shown automatically in user’s profile …

    Sorry I meant to say Processing. I thought you said Processing. I’m lacking coffee today.

    Maybe try this:

    add_action( 'woocommerce_thankyou', 'woocommerce_thankyou_change_order_status', 10, 1 );
    function woocommerce_thankyou_change_order_status( $order_id ){
        if( ! $order_id ) return;
    
        $order = wc_get_order( $order_id );
    
        if( $order->get_status() == 'processing' )
            $order->update_status( 'pending' );
    }

    Haven’t tested but can if you want.

    Thread Starter misharnet

    (@misharnet)

    I tested it, bit it does not work for WooWallet, only for Products.
    Anyway Thanks a lot for your reply.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @misharnet

    I’ll mark this thread as resolved and you can try contacting the author of that plugin for more help:

    https://www.ads-software.com/support/plugin/woo-wallet

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Setting Pending Status’ is closed to new replies.