I have updated Magento2.3.1 to Magento2.3.2. When proceed to checkout I am getting the data-bind error –
knockout-3.4.1.js:72 Uncaught ReferenceError: Unable to process binding “if: function(){return (addressOptions.length > 1) }”
Message: addressOptions is not defined
When I searched the keyword addressOptions in my magento folder the file path is:
/vendor/magento/module-checkout/view/frontend/web/template/billing-address/list.html
and the code in the html file is:
<div class="field field-select-billing">
<label class="label"><span data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
<div class="control" data-bind="if: (addressOptions.length > 1)">
<select class="select" name="billing_address_id" data-bind="
options: addressOptions,
optionsText: addressOptionsText,
value: selectedAddress,
event: {change: onAddressChange(selectedAddress())};
"></select>
</div>
</div>
The error is attached as belowknockout.js
If anybody knows please help me. Thanks in advance.
3
Answers
You have
rewritten in your custom theme.
Bring it up to date, recompile and see if it solves your problem.
I was able to solve rewriting the billing-address.html template of a custom plugin which I bought.
In this template there was the inclusion of the billing address list template in this way:
while in the core of magento the template was included in this way instead:
so I made this change in my template and I receive no more errors.
Maybe something changend in the latest Magento2.3 versions regarding the inclusions of this kind of templates?