I am facing an error in Magento 2.1.5. I have changed the product quantity from Magento admin panel but the stock did not update.
I have clean cache already but it still showing out of stock.
Can anyone please help me to solve it.
Below the product quantity option there is a stock status option make sure that is set to "In Stock".
If this is not your problem please provide some more information as what type of product etc.
If you have a custom theme, you must add the attribute isQty = "true"
in magento/app/code/YourCustomTheme/Catalog/etc/product_types.xml for example:
Did your site have single store view or multiple store view? If it has multiple store view do check if you are changing the inventory status in correct store. Also change the inventory status of other products to check if it is working for other products.
Reindex the Indexing from terminal :
php bin/magento indexer:reindex
Or You can disable cache and Change index mode to "Update on save" then make your changes for product and check!
Maybe your issue is regarding the store. can you please check your store id 0 and 1 values different or the same?
like admin product edit url in last add /store/0 and store/1 both value may be different.
Once both store wise same value save you need to run command reindexing.
php bin/magento indexer:reindex
Note - https://github.com/magento/magento2/issues/5696#issuecomment-234493524
I had the same issue once. It happens when your shop is set to production mode. Disable the cache, change product stock status, save it and enable the cache.
In my case it was when backorders were allowed / enabled. This does not update the availability when the quantity is changed.
php bin/magento indexer:reindex
. If you have a big catalog it will take time. Than flush cachephp bin/magento cache:flush
. Make sure cache is flushed in directoryvar/cache
andvar/pagecache