0

We have 1 out of stock product and 78 in stock products. But in layered navigation I am getting In stock(79) which is wrong.

I have set "Display out of stock product to YES" in admin configuration.

Please check image for more clarification.

  • Please check your 1 out of stock product. Is that really out of stock or not?. – Monark Bhawani Aug 14 at 11:39
  • I have checked in admin status is out of stock but on detail page it showing In Stock! How is it possible? – Anita Patel Aug 14 at 12:07
  • Can you create a custom code to show Quantity?. – Monark Bhawani Aug 14 at 13:10
  • So there is no way to do it from magento admin? – Anita Patel Aug 14 at 13:35
  • Are you using any third party extension for In stock filter? If yes, then check its logic whether it is actually excluding out of stock products while rendering count. – Lokesh Naik Aug 17 at 10:17
0

It seems like you use Product Stock Indexer. Try to do these steps:

  1. reindex cataloginventory_stock

    run bin/magento indexer:reindex cataloginventory_stock in console

  2. flush cache

    run bin/magento cache:flush in console

  3. flush varnish cache (additional, if you use one)

    run sudo service varnish restart in console

  • followed all steps but still same.. – Anita Patel Aug 15 at 9:47
  • do you use any custom modules that possibly change this default behaviour? – Rendy Eko Prastiyo Aug 15 at 10:52
  • No we have just created custom theme for design didn't do anything for navigation. – Anita Patel Aug 15 at 11:16

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.