Skip to content

Commit

Permalink
Fix issue for IE11: cart total isn't shown under some condition (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliyreznikov authored Jul 22, 2020
1 parent 237f1f3 commit 4b58645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/frontend/templates/js/replacejs.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -2323,9 +2323,10 @@ if (!$block->isSaveCartInSections()) { ?>
if (trim(location.pathname, '/') === 'checkout/cart') {
require([
'jquery',
'Magento_Customer/js/customer-data',
'Magento_Checkout/js/model/quote',
'domReady!'
], function ($, quote) {
], function ($, customerData, quote) {
// If quote total was changed through a method we didn't create,
// we should reload the bolt cart since totals are probably now out of sync.
quote.totals.subscribe(function (newValue) {
Expand Down

0 comments on commit 4b58645

Please sign in to comment.