I'm working on a Magento 2.1 project with the Navas theme. I can add products to the cart, but the minicart doesn't show any products.. I can only visit the cartpage by going directly to the page, a click on the minicart icon doesn't send me to the cartpage.

I struggle with the following error:

knockout.js:3012 Uncaught TypeError: Unable to process binding 
"css: function (){return { empty:cart().summary_count == 0} }"
Message: cart is not a function

I have tried the following, without success another Magento Question in the Stack Exchange

I'm out of ideas, help would be appreciated.

  • Did you solve the issue?
    – Gem
    Commented May 17, 2018 at 9:04

1 Answer 1


The missing step is you need to update "content.html" in mini-cart folder as well. I have resolved it in three steps:

  1. Replace the minicart.phtml file from theme:
    • app\design\frontend\Theme_namespace\Theme_module\Magento_Ch‌​eckout\templates\car‌​t with the core template at:
    • vendor\magento\module-checkout\view\frontend\templates\cart‌​

  1. Replace content.html file from your theme:

    • app\design\frontend\Theme_namespace\Theme_module\Magento_Checkout\web\template\minicart\content.html

With the core template version:

  • vendor\magento\module-checkout\view\frontend\web\template\minicart\content.html

  1. To make sure everyting has flushed out from the Front-end. Remove all files from:

    • pub/static/frontend
    • var/cache

Run deploy static content again: php magento setup:static-content:deploy

See Image Result minicart after fixed with the above steps.

  • I followed above steps, my error is : snag.gy/zKoxYR.jpg How can i solve the issue? code -> 1) vendor\magento\module-checkout\view\frontend\templates\cart‌​\minicart.phtml -> justpaste.it/4hw6o 2) vendor\magento\module-checkout\view\frontend\web\template\minicart\content.html -> justpaste.it/3kz7i
    – Gem
    Commented May 17, 2018 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.