We have created a product with a custom option (free text field). The customer enters data, now this data should be exported via enter image description here curl -X GET --header "Accept: application/xml" --header "Authorization: Bearer $B" "https://shop.example.com/rest/english/V1/orders/105"
But I cannot find the data of the custom option in the REST result.
Is that normal?
Is it a bug?
-
You need to call custom Order API and make code in Customer Interface.Aditya Shah– Aditya Shah2018年09月24日 08:25:29 +00:00Commented Sep 24, 2018 at 8:25
-
Do you mean Customer Interface or Custom Interface? I wish this would be in the standard API ... Created an issue over at GitHub - somehow it feels like a bug but it might be more a obvious missing feature github.com/magento/magento2/issues/18227Alex– Alex2018年09月24日 18:40:50 +00:00Commented Sep 24, 2018 at 18:40
1 Answer 1
I solve it by creating an Extensionattribute and copy logic over from the core giftmessage attribute which also adds extension attributes to orderItems.
-
can u share your module code here?Hafiz Arslan– Hafiz Arslan2020年07月02日 05:07:48 +00:00Commented Jul 2, 2020 at 5:07
-
-
can u guide me magento.stackexchange.com/questions/316366Hafiz Arslan– Hafiz Arslan2020年07月02日 05:42:08 +00:00Commented Jul 2, 2020 at 5:42