I have created a new theme in Magento 2 and rewritten minicart.phtml, but when adding product to cart, mini-cart does not show items and have error JS (knockout.js) like this:

Uncaught TypeError: Unable to process binding "if: function (){return getCartParam('summary_count') }" Message: Unable to process binding "foreach: function (){return { data:getCartParam('items'),as:'item'} }" Message: Unable to process binding "foreach: function (){return $parent.getRegion($parent.getItemRenderer(item.product_type)) }" Message: Cannot read property 'configurable' of undefined

Please help me fix this bug, thanks for all.

  • can you post the changes you made to minicart.phtml? – circlesix May 14 '18 at 3:23
  • Please share minicart.phtml file code. – kunj Jun 21 '18 at 2:25

Check you have included the html template correctly in the js file. I believe you're receiving these errors because your js(knockout) and html files can't see each other.

  • 1
    How do i make them see each other – BrandenB171 Jul 27 '19 at 3:22
  • Such a great question ... I love how you get a hint and the problem, but no actual solution. – TheTC May 27 '20 at 14:12
  • 1
    Maybe trick them into a date? – omsta Oct 16 '20 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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