Merge pull request #27219 from woocommerce/fix/filter-quantity-in-add_to_cart_handler_grouped
Filter quantity in add_to_cart_handler_grouped
This commit is contained in:
commit
9bdafbeb18
|
@ -826,6 +826,7 @@ class WC_Form_Handler {
|
|||
$quantity_set = false;
|
||||
|
||||
foreach ( $items as $item => $quantity ) {
|
||||
$quantity = wc_stock_amount( $quantity );
|
||||
if ( $quantity <= 0 ) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue