Skip to content

Observer that runs when an order is attempted to be created in the Admin

I need to create an observer or plugin or something else that will run when an order is attempted to be created through the admin. I added a custom attribute for customers (offline/online). If the attribute is set to offline then an order can not be created for the customer. Is there event that can be observed or is there a better approach?

Thanks in advance.

enter image description here