majky Posted July 7, 2010 Share Posted July 7, 2010 hi which hook i have register in my module when i want to by called "change order status"?and how to get actualy order status?thx Link to comment Share on other sites More sharing options...
rocky Posted July 8, 2010 Share Posted July 8, 2010 You can use postUpdateOrderStatus hook to execute code after the order status has been changed. The first parameter is the id_order_state that the order was changed to. Link to comment Share on other sites More sharing options...
hardiksolanki Posted September 10, 2016 Share Posted September 10, 2016 public function install(){return (parent::install()AND $this->registerHook('newOrder')AND $this->registerHook('actionOrderStatusPostUpdate'));}public function hookNewOrder($params){return $this->hookActionOrderStatusPostUpdate($params);}public function hookActionOrderStatusPostUpdate($params){//$params['newOrderStatus'] // after status changed//$params['orderStatus'] // after order is placed} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now