Get a quick single-click solution to share your products on various social media platforms. Only at $29 $19Buy Now!
Public Ticket #2819

Cristina

I need to set the quantity of product to a default of 0 NOT 1

wpxteam

wpxteam

Hi Cristina,

I hope that you are doing great. Please add the following code block to your child theme's functions.php file. (You can also use the Code Snippets plugin to add it).

add_filter('pvtfw_ajax_cart_prepare_quantity', function(){
return 0;
});

add_filter('woocommerce_quantity_input_min', function(){
return 0;
});

add_filter('pvtfw_qtyargs_input_value', function(){
return 0;
});

Let us know if this works. Also, if you need assistance with adding the code, please let us know.

We will wait for your feedback.

Thank you