move $cart_updated inside $passed_validation IF statement. #6703
This commit is contained in:
parent
2f7fcb56ae
commit
5a2c9a3ed2
|
@ -418,9 +418,9 @@ class WC_Form_Handler {
|
|||
|
||||
if ( $passed_validation ) {
|
||||
WC()->cart->set_quantity( $cart_item_key, $quantity, false );
|
||||
$cart_updated = true;
|
||||
}
|
||||
|
||||
$cart_updated = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue