WooCommerce showing variable as out of stock despite having products in stock
-
Hi,
I have a problem with a WooCommerce site I am hosting. The problem is that some variable products are shown as “Out of stock” despite some of the variations having a positive stock.
I have turned off “Manage stock” for the “main”-product and have “Manage stock” turned on for the variations.
It is only an issue for some of the products, not all of them. It is almost like the stock status is not updated based on the actual inventory.
It is possible to solve the problem manually, by first turning off “Manage stock” for all variations, then publish, go back and turn it on for all variations and entering the correct stock value. However, since this is an issue for several hundred products and they each have up to 10 variations, doing it manually is not an option.Anyone know how to solve this? I am thinking that there might be some kind of sql command I can run to update the correct tables in the database.
Any help is highly appreciated!
- The topic ‘WooCommerce showing variable as out of stock despite having products in stock’ is closed to new replies.