Add Min, Max, Increment & Start Value @ Add to Cart Quantity | WooCommerce Single Product Page
add_filter(
'woocommerce_quantity_input_args'
,
'bloomer_woocommerce_quantity_changes'
, 10, 2 );
function
bloomer_woocommerce_quantity_changes(
$args
,
$product
) {
$args
[
'input_value'
] = 4;
// Start from this value (default = 1)
$args
[
'max_value'
] = 10;
// Max quantity (default = n/a)
$args
[
'min_value'
] = 2;
// Min quantity (default = 1)
$args
[
'step'
] = 2;
// Increment/decrement by this value (default = 1)
return
$args
;
}