About the order status of "bacs" gateway

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM About the order status of "bacs" gateway

Viewing 6 reply threads
  • Author
    Posts
    • #41161
      MOHO
      Participant

      Now i check when the customer place a order, the default order status is “Processing”

      could change back “pending payment”?

      Attachments:
      You must be logged in to view attached files.
    • #41169
      WCFM Forum
      Keymaster

      Hi,

      I think you have some custom code or plugin which set this statue “processing”, as by default WC set this “pending payment”.

      Add this code snippet and check –

      add_action( 'woocommerce_checkout_order_processed', 'wcfm_changing_order_status_before_payment', 100, 3 );
      function wcfm_changing_order_status_before_payment( $order_id, $posted_data, $order ){
          $order->update_status( 'pending' );
      }

      Thank You

    • #41170
      MOHO
      Participant

      other gateway will change?
      or only change bacs gateway?

    • #41219
      WCFM Forum
      Keymaster

      Hi,

      Then use this code, it will work only for bacs –

      add_action( 'woocommerce_checkout_order_processed', 'wcfm_changing_order_status_before_payment', 100, 3 );
      function wcfm_changing_order_status_before_payment( $order_id, $posted_data, $order ){
      	$payment_method = ! empty( $order->get_payment_method() ) ? $order->get_payment_method() : '';
      	if( $payment_method == 'bacs' ) {
          $order->update_status( 'pending' );
        }
      }

      Thank You

    • #41300
      MOHO
      Participant

      Sorry, I try, but it still “processing” after i place order through “bacs” gateway

      Attachments:
      You must be logged in to view attached files.
    • #41313
      WCFM Forum
      Keymaster

      HI,

      Can you please check, there has some other plugin which set this “Processing”.

      Actually, WooCommerce by default set this pending for bacs orders. Then why it change to processing!

      Thank You

    • #41322
      MOHO
      Participant

      OK i got it, i will check it

Viewing 6 reply threads
  • The topic ‘About the order status of "bacs" gateway’ is closed to new replies.