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:
Rodrigo Primo 2020-09-12 15:56:49 -03:00 committed by GitHub
commit 9bdafbeb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}