Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › About the order status of "bacs" gateway
- This topic has 6 replies, 2 voices, and was last updated 5 years, 11 months ago by MOHO.
Viewing 6 reply threads
- AuthorPosts
- December 26, 2018 at 6:40 am #41161
- December 26, 2018 at 8:26 am #41169WCFM ForumMember
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
- December 26, 2018 at 8:39 am #41170MOHOParticipant
other gateway will change?
or only change bacs gateway? - December 26, 2018 at 1:44 pm #41219WCFM ForumMember
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
- December 27, 2018 at 3:53 am #41300
- December 27, 2018 at 7:18 am #41313WCFM ForumMember
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
- December 27, 2018 at 8:02 am #41322MOHOParticipant
OK i got it, i will check it
- AuthorPosts
Viewing 6 reply threads
- The topic ‘About the order status of "bacs" gateway’ is closed to new replies.