change order status to open
This commit is contained in:
@@ -65,7 +65,8 @@ class Wiaas_Checkout {
|
||||
|
||||
do_action( 'woocommerce_checkout_order_processed', $order_id, array(), $order );
|
||||
|
||||
$order->payment_complete();
|
||||
//Change order status from default 'Pending payment' to open (custom wiaas status)
|
||||
$order->update_status('open');
|
||||
|
||||
WC()->cart->empty_cart( true );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user