Override the minicart.js on your theme from vendor/magento/module-checkout/view/frontend/web/js/view/minicart.js
Under the initialize: function () you will see the below code
1 2 3 4 |
$('[data-block="minicart"]').on('contentLoading', function () { addToCartCalls++; self.isLoading(true); }); |
Replace with below code
1 2 3 4 5 6 7 8 9 10 |
$('[data-block="minicart"]').on('contentLoading', function () { addToCartCalls++; self.isLoading(true); $('[data-block="minicart"]').on('contentUpdated', function () { $('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog("open"); setTimeout(function() { $('[data-block="minicart"]').find('[data-role="dropdownDialog"]').dropdownDialog("close"); }, 4000); }); }); |
If you want get query string params in controller file,...
Create di.xml and add the below code Magemonkey/Redirect/etc/frontend/di.xml [crayon-6284677b961d0145274230/] Create...
You can try below code to change local date to...
Step 1: First you need to add registration.php file in...
Step1 : Override message.js in current theme file on the...