Skip to content

Commit

Permalink
bug fix: $qty should be $max. Fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel committed Jan 30, 2020
1 parent 1c50e5b commit e96fab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woocommerce-max-quantity.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function isa_wc_max_qty_variation_input_qty_max( $args, $product, $variation ) {
// Limit our max by the available stock, if stock is lower

// Set to lessor of stock qty or max allowed
$args['max_qty'] = min( $qty, $args['max_qty'] );
$args['max_qty'] = min( $max, $args['max_qty'] );

}

Expand Down

0 comments on commit e96fab7

Please sign in to comment.