Skip to content

Commit

Permalink
Merge pull request #3092 from OpenCartAddons/patch-3
Browse files Browse the repository at this point in the history
Modification to pre.order.history.add event trigger
  • Loading branch information
danielkerr committed Jun 14, 2015
2 parents e30de74 + 77830ee commit 61aa9d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions upload/catalog/model/checkout/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,13 @@ public function getOrder($order_id) {
}

public function addOrderHistory($order_id, $order_status_id, $comment = '', $notify = false) {
$this->event->trigger('pre.order.history.add', $order_id);
$event_data = array(
'order_id' => $order_id,
'order_status_id' => $order_status_id,
'comment' => $comment,
'notify' => $notify
);
$this->event->trigger('pre.order.history.add', $event_data);

$order_info = $this->getOrder($order_id);

Expand Down Expand Up @@ -860,4 +866,4 @@ public function addOrderHistory($order_id, $order_status_id, $comment = '', $not

$this->event->trigger('post.order.history.add', $order_id);
}
}
}

0 comments on commit 61aa9d7

Please sign in to comment.