3

I have an error on checkout page if I am logged in. But its does not occur if I am not logged in. On the checkout page I am getting the following error:

Error occurred during "shipping_address" processing. Error occurred during "save_in_address_book" processing. Invalid type for value: "1". Expected Type: "int".

I believe this is related to data being sent from the browser to magento is invalid but I cannot find a solution. I am running Magento 2.1.0 and upgraded to 2.1.2 to test and got the same error.

Can anyone offer any assistance? TIA

2 Answers 2

3

In your shipping.js file, search for save_in_address_book and

Replace

shippingAddress.save_in_address_book = true;

with

ShippingAddress.save_in_address_book = 1;

And replace

addressData.save_in_address_book = this.saveInAddressBook;

with

addressData.save_in_address_book = this.saveInAddressBook ? 1 : 0;

Hope it helps

0

with the transition to version 2.1 changes were made in shipping.js file. For example: 2.0.9 - 2.1.2

If you have defined it in his subject and made the transition - may have problems

2
  • Thanks, but how can i fix those shipping.js errors in magento2.1.5 help me great. Jun 22, 2017 at 12:23
  • can any one sove this issue Jun 23, 2017 at 6:11

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.