I need to add some code to Magento (1.6.2) to be executed when an orders status becomes Complete.
In our system, this happens when the order is “Shipped” – i.e. the “Ship” button is clicked, and the shipping info is saved.
I have hunted (obviously in the wrong places) to try and find what that event would be called, so that I can add an observer to watch for it firing, and then run my code.
Can anyone tell me what the name of this event would be (if it exists as an observable event) please?
Cheers!
I too find event hunting to be a bit of a dark art. In this case I would try
sales_order_save_beforeand then check in a handler like this: