Magento2 The shipping information was unable to be saved: verify the input data and try again

magento.stackexchange https://magento.stackexchange.com/questions/335778

  •  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:

https://1001101010.com/default/rest/default/V1/guest-carts/MA6cowPQxDBpfRSSJmQrca36ytXV5g1L/estimate-shipping-methods

{
    "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):

enter image description here

I'll recommend you to check:

  1. request body
  2. shipping address form
  3. 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top