4

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?

  • Try with adminhtml_sales_order_create_process_data – Sukeshini Nov 26 '13 at 3:59
14

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.

-1

checkout_onepage_controller_success_action you can use this event for frontend order placed.

  • But this was not the question. – Fabian Schmengler Mar 9 '17 at 21:03
  • Then use this event 'adminhtml_sales_order_create_process_data' and place events file into adminhtml folder.hope it will work for you. – NIRAJ SHARMA Mar 19 '17 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy