From 4b586458dce6ae85594975945423afe8fe5931be Mon Sep 17 00:00:00 2001 From: Vitaliy Reznikov Date: Wed, 22 Jul 2020 23:39:40 +0300 Subject: [PATCH] Fix issue for IE11: cart total isn't shown under some condition (#808) --- 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 6038827e7..adee7c64e 100644 --- a/view/frontend/templates/js/replacejs.phtml +++ b/view/frontend/templates/js/replacejs.phtml @@ -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) {