Skip to main content
Commonmark migration
Source Link

##Debug Magento Mini Cart##

Debug Magento Mini Cart

If we want to debug the Js Mini Cart, you find the js - minicart.js, for example: pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/view/minicart.js.

###Using Chrome to debug###

Using Chrome to debug

We can debug with Chrome.

enter image description here

##Try with the latest Magento version##

Try with the latest Magento version

I checked with Magento 2.1.1 version, seem they fixed this problem. The new function getCartParam('summary_count') will be used.

data-bind="css: { empty: !!getCartParam('summary_count') == false }, blockLoader: isLoading">

##Debug Magento Mini Cart##

If we want to debug the Js Mini Cart, you find the js - minicart.js, for example: pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/view/minicart.js.

###Using Chrome to debug###

We can debug with Chrome.

enter image description here

##Try with the latest Magento version##

I checked with Magento 2.1.1 version, seem they fixed this problem. The new function getCartParam('summary_count') will be used.

data-bind="css: { empty: !!getCartParam('summary_count') == false }, blockLoader: isLoading">

Debug Magento Mini Cart

If we want to debug the Js Mini Cart, you find the js - minicart.js, for example: pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/view/minicart.js.

Using Chrome to debug

We can debug with Chrome.

enter image description here

Try with the latest Magento version

I checked with Magento 2.1.1 version, seem they fixed this problem. The new function getCartParam('summary_count') will be used.

data-bind="css: { empty: !!getCartParam('summary_count') == false }, blockLoader: isLoading">
Source Link
Khoa TruongDinh
  • 32.3k
  • 11
  • 90
  • 156

##Debug Magento Mini Cart##

If we want to debug the Js Mini Cart, you find the js - minicart.js, for example: pub/static/frontend/Magento/luma/en_US/Magento_Checkout/js/view/minicart.js.

###Using Chrome to debug###

We can debug with Chrome.

enter image description here

##Try with the latest Magento version##

I checked with Magento 2.1.1 version, seem they fixed this problem. The new function getCartParam('summary_count') will be used.

data-bind="css: { empty: !!getCartParam('summary_count') == false }, blockLoader: isLoading">