1

I would like to send intimation to other third party tool if admin hold any order.

Is there any Event observer available to trigger?

1 Answer 1

4

I have detected 2 events for "hold" action: controller_action_predispatch_adminhtml_sales_order_hold and controller_action_postdispatch_adminhtml_sales_order_hold.

Next time, when you need to detect if an event has been dispatched add Mage::log($name, null, 'events.log', true); in app/Mage.php on dispatchEvent function. events.log file will be created under you var/log folder. In this file you will find all the events that has been dispatched.

Your function will become:

public static function dispatchEvent($name, array $data = array())
    {
        Varien_Profiler::start('DISPATCH EVENT:'.$name);
        $result = self::app()->dispatchEvent($name, $data);
        Mage::log($name, null, 'events.log', true);
        Varien_Profiler::stop('DISPATCH EVENT:'.$name);
        return $result;
    }

Good luck !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.