how can set default quantity zero for all products
-
Some time, user need default quantity for Table, Then user can add custom code by any code snippet plugin or in child theme’s functions.php file.
Add following code to your child theme’s functions.php file.
add_filter('woocommerce_quantity_input_min','wpt_custom_default_quantity_zero'); function wpt_custom_default_quantity_zero(){ return 0; }
Get this code from Github Gist – Code for set zero for default value.
Thanks by Saiful
The page I need help with: [log in to see the link]
- The topic ‘how can set default quantity zero for all products’ is closed to new replies.