‘Magento_Customer/js/customer-data’ javascript does not get cart items of customer
I have this code as below in a custom module define([ ‘rjsResolver’, ‘Magento_Customer/js/customer-data’, ‘jquery’ ], function (resolver, customerData, $) { ‘use strict’; return function (checkoutLoader) { var mixin = { gtmEventTrigger: function() { console.log(“Init Checkout Loader”); console.log(customerData); // console.log(customerData.get(‘cart’)); //… Read More »‘Magento_Customer/js/customer-data’ javascript does not get cart items of customer