• Resolved liam22

    (@liam22)


    Is there a filter to set the order status to on-hold instead of going directly to processing from pending payment

    I have a site where someone has done some customisations. Basically a lot of issues would be solved if the order status went directly to ‘On-hold’ from ‘Pending Payment’. Currently the default behaviour is direct to ‘Processing’ from ‘Pending Payment’.

Viewing 1 replies (of 1 total)
  • Plugin Author Afterpay

    (@afterpayit)

    Hi @liam22,

    Thanks for your question.

    As soon as each payment event is completed, Afterpay calls the WooCommerce core WC_Order::payment_complete method, which sets the Order status to either “processing” or “completed”, depending on whether the Order requires shipping.

    See the following code reference for more detail:

    Since WooCommerce passes the status through the “woocommerce_payment_complete_order_status” filter, coupled with the Order ID, customising the value based on payment method should be possible. Please consult with your web development team for technical assistance exploring these advanced customisations.

    Happy to answer any further questions as necessary.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Filter to set the order status?’ is closed to new replies.