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?

1
  • Try with adminhtml_sales_order_create_process_data
    – Sukeshini
    Nov 26, 2013 at 3:59

2 Answers 2

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.

3
-1

checkout_onepage_controller_success_action you can use this event for frontend order placed.

2
  • But this was not the question. Mar 9, 2017 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. Mar 19, 2017 at 3:47

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.