public function hookNewOrder($params)
 {
     if (!Configuration::get('TS_TAB0_SEND_SEPERATE_MAIL') or !$this->_isTsIdActive((int) $params['order']->id_lang)) {
         return false;
     }
     RatingAlert::save((int) $params['order']->id);
 }
示例#2
0
 public function hookActionOrderStatusPostUpdate($params)
 {
     //'newOrderStatus' => $new_os,'id_order' => (int)$order->id
     $order = new Order((int) $params['id_order']);
     $iso = Language::getIsoById((int) $order->id_lang);
     $iso_upper = Tools::strtoupper($iso);
     if (!isset(TSCommon::$certificates[$iso_upper]['send_separate_mail']) || TSCommon::$certificates[$iso_upper]['send_separate_mail'] != 1 || TSCommon::$certificates[$iso_upper]['send_seperate_mail_order_state'] != (int) $params['newOrderStatus']->id) {
         return false;
     }
     RatingAlert::save((int) $order->id, $iso_upper);
 }