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.
Best Answer
The missing step is you need to update "content.html" in mini-cart folder as well. I have resolved it in three steps:
app\design\frontend\Theme_namespace\Theme_module\Magento_Checkout\templates\cart
with the core template at:vendor\magento\module-checkout\view\frontend\templates\cart
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
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.