woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.3k stars 10.74k forks source link

Variable Products are appearing in Stock with status 'Out of Stock' and Stock 'N/A' #32134

Open 1000camels opened 2 years ago

1000camels commented 2 years ago

Describe the bug

Variable Products are appearing in Stock with status 'Out of Stock' and Stock 'N/A' These variable products have variations that are in stock. Their stock is set to 0 and they have Enable stock management at product level checked.

To Reproduce

Create a variable product with variations in stock. Set variable product stock to 0 and check 'Enable stock management at product level'.

Expected behavior

I do not expect these variable products to appear or if they do, they should aggregate the stock of the variations.

pduclo commented 2 years ago

Uncheck "Enable stock management at product level checked" to use per variation stock?

1000camels commented 2 years ago

I have done that and it still does not help.

I should have said, this is happening in Analytics > Stock.