When paypal payment is on hold, reduce stock and empty cart.
Closes #8145
This commit is contained in:
parent
2a4f9f77db
commit
d19117a108
|
@ -62,5 +62,7 @@ abstract class WC_Gateway_Paypal_Response {
|
|||
*/
|
||||
protected function payment_on_hold( $order, $reason = '' ) {
|
||||
$order->update_status( 'on-hold', $reason );
|
||||
$order->reduce_order_stock();
|
||||
WC()->cart->empty_cart();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue