<?php /* * 2015 ekosshop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * * * @author ekosshop <*****@*****.**> * @shop http://ekosshop.com * @copyright 2015 ekosshop * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * */ $useSSL = true; include dirname(__FILE__) . '/../../../config/config.inc.php'; include dirname(__FILE__) . '/../eko_ctt.php'; $ekoctt = new eko_ctt(); echo $ekoctt->updateAllTracking();
private function getCTTStatus($default_lang, $state = 0) { if ($state > 999000) { if (Module::isInstalled("eko_ctt")) { $ctt = new eko_ctt(); $ctt_status = $ctt->getCTTStates($state); $result[] = array('name' => 'EKO_CTT - ' . $ctt_status['name']); return $result; } } else { if (Module::isInstalled("eko_ctt")) { $ctt = new eko_ctt(); $ctt_status = $ctt->getCTTStates(); foreach ($ctt_status as $key => $cttST) { $DbData = $this->getSMSmsgDB($cttST['id'], $default_lang); $DbDataM = $this->getSMSMmsgDB($cttST['id']); $result[] = array('id_order_state' => $cttST['id'], 'name' => "EKO_CTT : " . $cttST['name'], 'msg_customer' => $DbData['msg_customer'], 'msg_merchant' => $DbDataM['msg_merchant']); } } return $result; } return false; }