Posted on

Set default quantity 0 only for table

If you want to set the default quantity 0 only for table you can do that using a filter hook.

function codeAstrology_set_default_qty(){
	return 0;
}
add_filter("woocommerce_quantity_input_min","codeAstrology_set_default_qty");

Still no luck? We can help!

Submit a Request

Contact us and we’ll get back to you as soon as possible.