• Resolved Erwitt

    (@erwitt)


    Hi,

    I have a problem with my Woocommerce store. When an order is made, Woocommerce sends the Processing email, which is normal, but also the Order Completed email, even though the order status is still Processing.

    The products are simple, physical.

    Previously I also had a problem with the orders changing automatically from Processing to Completed, that was resolved adding this code:

    /*prevent any orders from autocompleting*/
    /*
     */
    add_action( 'woocommerce_thankyou', 'stop_auto_complete_order' );
    function stop_auto_complete_order( $order_id ) { 
        if ( ! $order_id ) {
            return;
        }
    
        $order = wc_get_order( $order_id );
        $order->update_status( 'processing' );
    }

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @erwitt – this isn’t something I’ve been able to duplicate on my test site, nor do I need the code you’ve added to prevent auto-completing of orders.

    I would suggest first trying with a different payment gateway to ensure the payment gateway itself isn’t returning the incorrect statuses during payment confirmation.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @erwitt,

    We’ve not heard back from you in a while, so we’re checking whether the issue persisted with a different payment gateway (preferably the inbuilt ones like COD or BACS).

    We’ll appreciate getting an update.

    Thanks.

    Thread Starter Erwitt

    (@erwitt)

    Hi @abwaita,

    Sorry for the delay. The issue has been resolved, it was due to a wrong setup in the bank gateway.

    Thanks for your help.

    Plugin Support abwaita a11n

    (@abwaita)

    Glad to hear it – thanks for letting us know!

    If you have any other questions, please feel free to create a new thread.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce sends Order Completed when status is still Processing’ is closed to new replies.