I've been trying to understand the "On stock" issue on the product page for a few days now. Unfortunately, with the standard installation some things work differently than expected.

Why does the stock status not change when an attribute of a configurable product is changed?

Is this a bug of Magento or is the behaviour so intended?

How can I reload stock status each time I click on a different attribute of the configurable product, so that the current stock status of each individual product is displayed?

1 Answer 1


When Magento 2 is not behaving as expected the best bet is clearing the cache and/or reindexing. In this case you should reindex.

bin/magento indexer:reindex

Magento 2 index documentation

  • Hey Zivorad, thanks for your answer! unfortunately it does not solve the problem. even with a newly installed magento 2.2 shop, configurable products generally do not display the correct stock status.
    – Leon
    Nov 6, 2017 at 16:30
  • Is it a multi-store? Nov 6, 2017 at 16:31
  • The "single store mode" is not enabled, but there is only one website, one store and one storeview. The stock status of configurable products in the newly installed shop is not updated too.
    – Leon
    Nov 6, 2017 at 16:39
  • Are you changing stock inside default or website scope? Nov 6, 2017 at 16:41
  • In "All Store Views"
    – Leon
    Nov 6, 2017 at 16:53

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.