Hi I am not able to add stock in variable products.
I guess you removed totally the stock option from woocommerce as said in reply #3130.

I meant just to remove the option showing “2 in stock” on the website.
But I want to maintain stock on products in the backend and only “Out of stock” shows if anything is out of stock.