Magento – Admin Create New Order Observer

event-observermodel

I am trying to locate the correct observer to capture the data when the admin creates a new order. I do not want this observer to be triggered when frontend orders are placed. (Only admin backend created orders)

I have tried the following but these still get triggered if a customer places an order on the frontend.

sales_order_place_before
adminhtml_sales_order_create_process_data
sales_order_save_after

Again, what is the proper observer that will be triggered if the admin creates an order and not the frontend created orders?

Best Answer

Instead of placing your event observer code into the <global> node just place it inside the <adminhtml> node in your module's config.xml file.

Related Topic