[+] BO : New hooks added (helpers + order history)

This commit is contained in:
fSerny
2012-02-15 13:54:50 +00:00
parent c6a8f20168
commit 3b19955a5c
5 changed files with 45 additions and 0 deletions
+10
View File
@@ -346,6 +346,16 @@ class OrderHistoryCore extends ObjectModel
Mail::Send((int)$order->id_lang, $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname']);
}
Hook::exec('actionOrderHistoryAddAfter', array('order_history' => $this));
return true;
}
public function add($autodate = true, $null_values = false)
{
if (!parent::add($autodate))
return false;
Hook::exec('actionOrderHistoryAddAfter', array('order_history' => $this));
return true;
}