0

My checkout page is customized. Now after the upgrade when I tried to access the checkout page its showing the error Uncaught ReferenceError: Unable to process binding "click: function(){return selectAddress } , I have checked the shipping.js and its have the required method like this :

 selectAddress: function (address) {
             console.log(address.getKey());
            selectShippingAddress(address);
            checkoutData.setSelectedShippingAddress(address.getKey());
        }

What could be the reason for not accessing the function? any help enter image description here

11
  • Have you checked if any module's rewrite the shipping.js or your theme? Take a look inside requirejs-config.js for any rewrite's Aug 16, 2021 at 12:56
  • @AlanZavagli this is from a custom theme. Means it's overrieded one. Aug 16, 2021 at 13:05
  • The issues could be 2, the theme is no more overriding the shipping.js, or the upgrade changed some js's, could you please check your shipping.js in the google developer tools to check where it's getting the code? Aug 16, 2021 at 13:10
  • When I move the method to top area in shipping.js I got error in chrome console. Its means its still calling the js file Aug 16, 2021 at 13:16
  • In google developer -> network -> filter for shipping.js, could you please check inside the response for the method? I've checked inside shipping.js (Magento base) there's not that method, (version 2.3.5) Aug 16, 2021 at 13:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.