I have a custom module which has an observer set on the ‘sales_order_place_after’ event. When I place an order through the checkout process on the front end, the callback method gets executed. However, when I place an order for a customer through the admin interface, the callback is not executed, even though the event is apparently dispatched.
In Mage/Sales/Model/Order.php I have:
public function place()
In my call back I have some log messages. An order from the front end results in this in the log:
009-01-23T01:37:54+00:00 DEBUG (7): calling dispatch
2009-01-23T01:37:54+00:00 DEBUG (7): callback executed
2009-01-23T01:37:55+00:00 DEBUG (7): found workshop
2009-01-23T01:38:02+00:00 DEBUG (7): called dispatch
The log message from an order placed in the admin results in:
2009-01-23T01:39:35+00:00 DEBUG (7): calling dispatch
2009-01-23T01:39:35+00:00 DEBUG (7): called dispatch
My modules config is:
Can anyone shed some light onto what is going on here?