Please help me to find out issue,I am using Magento 2.1.8 with custom porto theme. When change product stock status to outofstock it's not display in frontend.

In frontend product page there always show instock product label even I change status from admin.

but ,When i run reindex data command and it's working perfect. So how we solve this issue. why i have every time run reindec command ?

  • Please set cron job in your webstore. It will reindex your store after some regular intervals.
    – Meetanshi
    Nov 14, 2017 at 6:25

1 Answer 1


You just need to select action "update on save" from index management.

Go to System->Tools->Index Management

Now select checkbox of indexer Stock and select Update On Save from action dropdown.

Now any stock update immediately affected at the time of saving product. Do not need to run indexer every time.

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.