0

On product page, if you try to put more than available product count into the shopping cart, there appears a red error message

"The requested qty is not available" 

thats good.

But in my magento 2.3.2 this message gets hidden after 5 seconds = too quickly, so user maybe does not see it.

I want to disable this feature or enlarge the time to about 15 seconds. Can someone please help me to do this?

I've looked into so many .js and other files, try to watch via Developer Console which script is firing but no success.

This add to cart message is DIFFERENT than the ones in the checkout. For the checkout ones I've found the solution to look into

/vendor/magento/module-ui/view/frontend/web/js/view/messages.js 

where you can enlarge the time for the "checkout error messages", but its not helping for add to cart problems.

Anyone any idea?

Savan Patel
2,4541 gold badge19 silver badges42 bronze badges
asked Mar 12, 2020 at 13:25

1 Answer 1

0

I suspect that for Cart page, its not from JS.

Kindly check the below php files that throws the error "The requested qty is not available"

magento/module-catalog-inventory/Model/StockStateProvider.php

magento/module-requisition-list/Model/RequisitionListItem/Validator/Stock.php

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.