I am using Porto v2.2.0 – Ultimate Responsive Magento Theme and showing error like
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 resolved it in three steps:
Replace the minicart.phtml file from theme (app\design\frontend\Theme_namespace\Theme_module\Magento_Checkout\templates\cart) with core template (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 core template (vendor\magento\module-checkout\view\frontend\web\template\minicart\content.html)
Remove all pub/static/frontend , remove var folder. Run deploy static content again : php magento setup:static-content:deploy
Result minicart after fixed :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With