• Resolved tamirg

    (@tamirg)


    Hey,

    The plugin automaticlly puts the order on the status “pending payment”
    It makes me a problem with me email sending becuase My email is only sent to payment who is on the status “on hold”

    I found a simple hook to change the cash on delivery gateway option from to “pending payment” to “on hold” –

    add_filter( ‘woocommerce_cod_process_payment_order_status’, ‘change_cod_payment_order_status’, 10, 2 );
    function change_cod_payment_order_status( $order_status, $order ) {
    return ‘on-hold’;
    }

    Can you please tell me how to edit this hook to support your gateway and change all orders made by your gateway to the status “on hold”?

    Thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Richard Muvirimi

    (@tygalive)

    Thank you for your feedback

    This plugin natively supports setting the order status upon completion of an order. after creating your payment gateway, goto woocommerce settings, payment, this gateway setting, and there you will find a dropdown with the order status to set after the customer has completed the order.

    Just make sure you have no other plugins setting the order status to something different than the one you would have set

    Would like to know if you manage to resolve this or if this plugin is still not functioning as intented

    Thread Starter tamirg

    (@tamirg)

    Hey my friend,

    Thank you for the quick respone.
    Yes I found the dropdown now and it does work!

    Thank you very much

    Plugin Author Richard Muvirimi

    (@tygalive)

    Thank you, your feedback is much appreciated

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change defult order status from pending payment to on hold’ is closed to new replies.