Я использую Porto v2.2.0 — Ultimate Responsive Magento Theme и показываю ошибку, например
knockout.js:3012 Uncaught TypeError: Unable to process binding "css: function (){return { empty:cart().summary_count == 0} }"
Message: cart is not a function
Я использую Porto v2.2.0 — Ultimate Responsive Magento Theme и показываю ошибку, например
knockout.js:3012 Uncaught TypeError: Unable to process binding "css: function (){return { empty:cart().summary_count == 0} }"
Message: cart is not a function
cart
не является ko.observable
, функцией или computed
полем 02.09.2016 Я решил это в три шага:
Замените файл minicart.phtml из темы (app\design\frontend\Theme_namespace\Theme_module\Magento_Checkout\templates\cart) основным шаблоном (vendor\magento\module-checkout\view\ интерфейс\шаблоны\корзина).
Замените файл content.html из вашей темы (app\design\frontend\Theme_namespace\Theme_module\Magento_Checkout\web\template\minicart\content.html) основным шаблоном (vendor\magento\module-checkout\ вид\интерфейс\веб\шаблон\minicart\content.html)
Удалите все pub/static/frontend, удалите папку var. Запустите развертывание статического содержимого еще раз: php magento setup:static-content:deploy
Миникорзина результата после исправления: