I want to show notification when i add product in cart right now when i add less then the products in the stock then i can see product added to cart but if i add more then the quantity in the stock then i am not seeing any alert or something , how can i do that ?

I have also tried store->configuration->catalog and inventory as well but unable to find out some solution . I have tried backorder option but it is not working as well

1 Answer 1


Please go to Stores > Configuration > Catalog > Inventory > Stock Options. Display Out of Stock Products: Choose Yes to enable displaying out of stock products in the frontend.

Let me know if this helps

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.