• Resolved lesi2000

    (@lesi2000)


    Hi everyone!

    Not sure how to properly explain the issue but i am using “chack payments” in my site. I would like when a custemr orders, the order to appear automaticaly on proceeding. Right now if they choose ‘check payment” the order status is on hold-on until i change it manually.
    I know that it is made on purpose this way but i need to change it somehow. Do you have any idea how?

    Thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @lesi2000

    Thanks for reaching out!

    I understand that you want to change the default behavior of the order status from On Hold to Processing when customers placed an order using the built-in payment gateway, Check Payments, correct?

    Check Payments is a payment gateway that doesn’t require payment to be made online. You are correct that orders using this payment gateway are set On Hold until payment clears outside of WooCommerce.

    I did some research and found the code snippet below from this article that worked on my site:

    /* Change Order Status of Check Payments from On Hold to Processing
     * https://stackoverflow.com/questions/69735036/immediately-set-on-hold-orders-to-processing-in-woocommerce-and-send-the-process
     * */
    
    function filter_process_payment_order_status( $status, $order ) {
        return 'processing';
    }
    add_filter( 'woocommerce_cheque_process_payment_order_status','filter_process_payment_order_status', 10, 2 );

    Output:

    Hope this helps!

    Thread Starter lesi2000

    (@lesi2000)

    Thank you! This is exactly what i was looking for!

    Amir A. (woo-hc)

    (@amiralifarooq)

    Hi @lesi2000

    You’re welcome, glad it’s working fine now, if you have any new question please create a new ticket.

    Cheers!

    Hi @lesi2000

    You are most welcome and we’re glad that worked! ??

    In addition, if you have a few minutes, we’d love it if you could leave us a review:

    https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘check payments status processing woocommerce’ is closed to new replies.