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?


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

| improve this answer | |
  • 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 '17 at 16:30
  • Is it a multi-store? – Sinisa Colic Nov 6 '17 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 '17 at 16:39
  • Are you changing stock inside default or website scope? – Sinisa Colic Nov 6 '17 at 16:41
  • In "All Store Views" – Leon Nov 6 '17 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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