Merge pull request #6704 from helgatheviking/update_cart_action
move $cart_updated inside $passed_validation IF statement. #6703
This commit is contained in:
commit
f6fbdcd0ec
|
@ -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