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归因
scroll top