How to change the default product quantity to 0 on the Wholesale Order Form

By default, the Wholesale Order Form displays each product quantity as 1, unless you have set a Minimum Order Quantity to your products. The reasoning for this is it reduces the number of clicks or typing involved when ordering (since you can’t order 0 of something, it will be at least 1). The Order Form is all about speed ordering so this fits with that mindset.

However, we’ve received some requests from the past that they want to see the quantity starting from 0 instead. Unfortunately, we don’t support this feature as a setting but you can do it as a code snippet.

Using the custom snippet below will set the default value to 0, however, this only affects simple products on the Wholesale Order Form.

Please copy the snippet below and put it on your theme/child theme’s functions.php,

add_filter( 'woocommerce_quantity_input_args' , function( $input_args , $product ) {
$input_args[ 'input_value' ] = 0;
return $input_args;
}, 10 , 2 );

If you’ll need further customization, I’d recommend asking for assistance from a developer and I’d suggest looking at Codeable.

in WooCommerce Wholesale Order Form

Solve The Big Three Problems With Wholesaling In WooCommerce

Add wholesale pricing to products   Streamline your ordering   Register & manage wholesale customer

Explore The Plugin Suite  

[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']