See in private
We have used WPC Product Quantity for WooCommerce and WooCommerce Advanced Quantity (both are still there)
And a a code we found on the web