0

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.

1 Answer 1

0

Try to run the indexer commands -

php bin/magento indexer:reindex
php bin/magento indexer:status  //to check the indexer status
php bin/magento indexer:reset   //Use this to invalidate the status of all indexers 

Reference link - https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-index.html

then check all the child products have qty & they are added in main website and visibility set to Not Visible Individually.

2
  • Followed all steps but still same.
    – Sheri
    Mar 31, 2022 at 10:01
  • check all the the variants status & parent product is in stock. Apr 9, 2022 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.