Skip to content

Magento 2.4.0 – Configurable Product Showing Out of Stock

We have Multiple configurable products but some of the Configurable Products are showing as Out of Stock.

I have verified the following Multiple times

  • All children are In Stock & have a quantity greater than 0.
  • Configurable product is in Stock
  • Manage Stock settings (of Parent & child products)

$_product->isAvailable(); returning false in case of configurable Product(Out of Stock).

Note:
Not confirmed but we are running the GTM Scripts outside the Magento (maybe it is triggering this issue but not confirmed.

Temporary Solution:

Admin -> Catalog -> Open any child product and just hit the save button.
Now Configurable product again showing in stock…
The issue got fixed temporarily and then reappear at any other time.

Secondly
The issue also not appeared if I create a new product following the same content and settings as of the existing product.
But we have multiple configurable products and we need to apply the fixes to existing products without recreating them all.