I've successfully created a new field on the frontend with an extension_attribute by this documentation.

My problem is that where should I hook the extension attributes on the admin page?

The shipping method is set by Magento_Sales/order/create/scripts.js with the Adminorder.setShippingMethod mehod.

But this is a prototype file, I can not hook on it with mixin, since it has no return value.

How can I add/get the extension_attributes with my value?

1 Answer 1


I need to use the window.order in my javascript file instead of AdminOrder. It created from form.js.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.