How to fix «Unable to process binding "if: function (){return maxCartItemsToDisplay < getCartLineItemsCount() }" Message: maxCartItemsToDisplay is not defined»?

bug
bug-fix
knockout

(Dmitry Fedyuk) #1

01


How did I upgrade earosacoustic.com from Magento 2.0.2 to 2.2.2?
(Dmitry Fedyuk) #2

The solution:

In my case, the error was caused by the Hungersoft One Step Checkout (HS_OneStepCheckout) module.
I have fixed it in the app/code/HS/OneStepCheckout/view/frontend/layout/checkout_index_index.xml file by a replacement from

<item name="component" xsi:type="string">HS_OneStepCheckout/js/view/summary/cart-items</item>

to

<item name="component" xsi:type="string">Magento_Checkout/js/view/summary/cart-items</item>