• Resolved warrisr

    (@warrisr)


    I submitted a support request nearly two weeks ago and followed that up with a couple of email messages to [email protected]. The support request number is 16590. Can someone please get back to me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hello @warrisr

    Here is the content of your request for purposes of keeping it all in one place:

    When an order is paid for using PayPal, the order status is set to ‘processing’. We need to have the order status set to ‘on-hold’ as we need to review and approve the order before it is processed. How can I configure the plugin to do this?

    You can control the status of the order using filters provided by WooCommerce. Example:

    add_filter('woocommerce_payment_complete_order_status', function($status, $order_id, $order = null){
    if($order && in_array($order->get_payment_method(), ['ppcp'])){
    $status = 'on-hold';
    }
    return $status;
    }, 10, 3);

    Kind Regards

    Thread Starter warrisr

    (@warrisr)

    Thanks! That solved the problem.

    • This reply was modified 8 months, 2 weeks ago by warrisr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support Response’ is closed to new replies.