Magento2 The shipping information was unable to be saved: verify the input data and try again
-
05-05-2021 - |
题
While doing checkout I am seeing this issue?
I dint added any plugin for shipping. In log i am getting issue like StorePickupId
does not have accessory method getStorePickupId
in class Magento Checkout.
Please let me know the exact issue.
没有正确的解决方案
其他提示
This error happening because in the estimate-shipping-methods
request exists field store_pickup_id
inside the address, and corresponding interface Magento\Quote\Api\Data\AddressInterface
has no accessory method for it. As a checkout works through Magento API all values which you pass must have getter and setter methods in the interface.
Here is example of that request with body:
{
"address": {
"street": ["Mendeleeva str.", "30 112"],
"city": "Minsk",
"region_id": "517",
"region": "Гродзенская вобласць",
"country_id": "BY",
"postcode": "123456",
"firstname": "Siarhey",
"lastname": "Uchukhlebau",
"company": "",
"telephone": "12345678"
}
}
as you can see there no field store_pickup_id
, but if you add it somehow, you get error in result (example from postman where is additional field store_pickup_id
added manually in request body):
I'll recommend you to check:
- request body
- shipping address form
- any third-party components and mixins
This is a magento issue that's still not solved yet. You can visit the following github issue (23980): https://github.com/magento/magento2/issues/23908