From 5dc4f40e2b8f56df946e357aa9029bdaf7aa74b1 Mon Sep 17 00:00:00 2001 From: Vitaliy Reznikov Date: Tue, 21 Jul 2020 14:19:12 +0000 Subject: [PATCH] Fix issue for IE11: cart total isn't shown under some condition --- view/frontend/templates/js/replacejs.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/frontend/templates/js/replacejs.phtml b/view/frontend/templates/js/replacejs.phtml index 5b61a47c4..709ae754c 100644 --- a/view/frontend/templates/js/replacejs.phtml +++ b/view/frontend/templates/js/replacejs.phtml @@ -2288,9 +2288,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) {