#StackBounty: #magento2.3 #addtocart Increase the success/exception message time span in Magento 2

Bounty: 50

When product add to cart the success/exception message is hiding rapidly, So I just tried below way to show/increase the time span of the message. But it’s not worked for me.

I have modified the messages.js file as below from vendor/magento/Module-Ui/view/frontend/web/js/view/messages.js

/**
         * @param {Boolean} isHidden
         */
        onHiddenChange: function (isHidden) {
            var self = this; 
            // Hide message block if needed
             if (isHidden) {
                setTimeout(function () {
                    $(self.selector).hide('blind', {}, 500);
                }, 50000);
            }
        }

The above code is not working for me. Please suggest me increase the time span of the message.

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.