3

I have added custom filed in quote and order table, when ever i want to save i get

Property "MetroTimeSlot" does not have corresponding setter in class "Magento\Checkout\Api\Data\ShippingInformationExtensionInterface"

i have already added metro_time_slot in extension_attributes.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\Checkout\Api\Data\ShippingInformationInterface">
    <attribute code="metro_time_slot" type="string"/>
</extension_attributes>

4

I solved the same issue by removing files from [magento root]/var/generation/ folder.

| improve this answer | |
  • Yes this was solved by removing generation files – Durga shankar gupta Apr 20 '17 at 10:21
1

how do you pass the attribute in the request? It should be

{
    ...
    extension_attributes: {
         metro_time_slot: "value"
    }
}
| improve this answer | |
  • yes it is same extension_attributes:{ metro_time_slot: $('[name="metro_time_slot"]').val() } – Durga shankar gupta Apr 9 '17 at 9:31

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.