I have a woocommerce store and I want to make all the products ( including variable products ) quantity to 0. So, all the products will be out of stock. I am not getting any plugin to do it. I have atleast 2100 products in the inventory. So, it is not feasible to do it manually. Is there any other way I can do this automatically ?
Thanks.
2
Answers
Install PhpMyAdmin plugin and directly edit the quantities in the relevant database table.
You can paste this code in your functions.php in your child theme.