public function __construct() { $this->name = 'seur'; $this->version = '1.0'; $this->author = 'www.lineagrafica.es'; $this->need_instance = 0; $this->tab = 'shipping_logistics'; $this->limited_countries = array('es', 'pt'); $this->stateConfigured = 0; parent::__construct(); $this->displayName = $this->l('SEUR'); $this->description = $this->l('Manage your shipments with SEUR. Leader in the Express Shipping, National or International.'); /** Backward compatibility 1.4 / 1.5 */ if (version_compare(_PS_VERSION_, '1.5', '<')) { require_once _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php'; $this->context = Context::getContext(); $this->smarty = $this->context->smarty; } if (!class_exists('SoapClient')) { $this->active = 1; //only to display warning before install $this->warning = $this->l('The SOAP extension is not enabled on your server, please contact to your hosting provider.'); } elseif (!Configuration::get('SEUR_Configured')) { $this->warning = $this->l('Still has not configured their SEUR module.'); } }
public function __construct() { $this->name = 'tntcarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.8'; $this->author = 'PrestaShop'; $this->limited_countries = array('fr'); $this->module_key = 'd4dcfde9937b67002235598ac35cbdf8'; parent::__construct(); $this->displayName = $this->l('TNT Express'); $this->description = $this->l('Offer your customers, different delivery methods with TNT'); if (self::isInstalled($this->name)) { global $cookie; $warning = array(); $this->loadingVar(); $carriers = Carrier::getCarriers($cookie->id_lang, true, false, false, null, PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE); foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Saving id carrier list $id_carrier_list = array(); foreach ($carriers as $carrier) { $id_carrier_list[] .= $carrier['id_carrier']; } if (count($warning) > 1) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly.') . ' '; } if (count($warning) == 1) { $this->warning .= implode(' , ', $warning) . $this->l('has to be configured to use this module correctly.') . ' '; } } }
/** * */ public function __construct() { parent::__construct(); $this->displayName = $this->l($this->displayName); $this->description = $this->l($this->description); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); $this->loader = new \XDaRk\XDAutoLoader(); $this->loader->register(); $this->loader->addNamespace('\\acsws\\classes', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'classes'); }
public function __construct() { $this->name = 'mymodcarrier'; $this->tab = 'shipping_logistics'; $this->version = '0.1'; $this->author = 'Fabien Serny'; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('MyMod carrier'); $this->description = $this->l('A simple carrier module'); }
function __construct() { $this->name = 'fraktguide'; $this->tab = 'shipping_logistics'; $this->version = '0.10.7'; $this->author = 'Nils-Helge Garli Hegvik'; $this->module_key = '5191156334d29ca0c5d3f70c80e8ba38'; parent::__construct(); $this->displayName = $this->l('Bring Fraktguide'); $this->description = $this->l('Integrasjon av Bring Fraktguide'); }
function __construct() { $this->name = 'correios'; $this->tab = 'shipping_logistics'; $this->version = '3.0'; $this->author = 'Dlani Mendes'; $this->limited_countries = array('br'); parent::__construct(); /* The parent construct is required for translations */ $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Frete Correios'); $this->description = 'Painel de Controle dos Frete Correios.'; }
public function __construct() { $this->name = 'russianpostcarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.0.7'; $this->author = 'Serge Rodovnichenko'; parent::__construct(); $this->displayName = $this->l('Russian Post'); $this->description = $this->l('Calculate a shipping cost using Russian Post formulas'); $this->RussianPost = new RussianPost(); $this->carrierIdStr = 'SR_RUSSIAN_POST_CARRIER_ID'; $this->carrierCODIdStr = 'SR_RUSSIAN_POST_CARRIER_COD_ID'; }
public function __construct() { $this->name = 'mycarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.0'; $this->author = 'MakeBeCool'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('My carrier'); $this->description = $this->l('Custom carrier.'); $this->confirmUninstall = $this->l('Are you sure you want to delete this module?'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); }
public function __construct() { $this->name = 'hf_free_shipping_pro'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'WebDreamLab.com'; $this->need_instance = 1; /** * Set $this->bootstrap to true if your module is compliant with bootstrap (PrestaShop 1.6) */ $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Free, fixed or per amount shipping cost for products'); $this->description = $this->l('Adds capability for select a free shipping or a fixed shipping cost per quantity.'); }
public function __construct() { $this->name = 'dynamicparceldistribution'; $this->version = '2.0.2'; $this->tab = 'shipping_logistics'; $this->author = 'Balticode.com'; $this->limited_countries = array('lv', 'lt'); $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6.9'); $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('DPD'); $this->description = $this->l('Couriers and Parcel delivery in Europe.'); $this->confirmUninstall = $this->l('Are you sure you want to delete this module, with module data?'); $this->_errors = array(); }
function __construct() { $this->name = 'socolissimo'; $this->tab = 'shipping_logistics'; $this->version = '2.3'; $this->author = 'PrestaShop'; $this->limited_countries = array('fr'); parent::__construct(); $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('So Colissimo'); $this->description = $this->l('Offer your customers, different delivery methods with LaPoste.'); $this->url = Tools::getProtocol() . htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8') . __PS_BASE_URI__ . 'modules/' . $this->name . '/validation.php'; /** Backward compatibility */ require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { $ids = array(); $warning = array(); $soCarrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID')); if (Validate::isLoadedObject($soCarrier)) { if (!$this->checkZone((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Zone(s)\'') . ' '; } if (!$this->checkGroup((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Group\'') . ' '; } if (!$this->checkRange((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Range(s)\'') . ' '; } if (!$this->checkDelivery((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier price delivery\'') . ' '; } } //Check config and display warning if (!Configuration::get('SOCOLISSIMO_ID')) { $warning[] .= $this->l('\'Id FO\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_KEY')) { $warning[] .= $this->l('\'Key\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_URL')) { $warning[] .= $this->l('\'Url So\'') . ' '; } if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } $this->errorMessage = array('998' => $this->l('Invalid key'), '999' => $this->l('Error occurred during shipping step.'), '001' => $this->l('Login FO missing'), '002' => $this->l('Login FO incorrect'), '003' => $this->l('Customer unauthorized'), '004' => $this->l('Required field missing'), '006' => $this->l('Missing signature'), '007' => $this->l('Invalid signature'), '008' => $this->l('Invalid Zip/ Postal code'), '009' => $this->l('Incorrect url format return validation.'), '010' => $this->l('Incorrect url format return error.'), '011' => $this->l('Invalid transaction ID.'), '012' => $this->l('Format incorrect shipping costs.'), '015' => $this->l('Socolissimo server unavailable.'), '016' => $this->l('Socolissimo server unavailable.'), '004' => $this->l('Required field missing'), '004' => $this->l('Required field missing')); }
public function __construct() { $this->name = 'fedexcarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.4'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); $this->module_key = 'e690479f7f292afefbef7e55f884527d'; parent::__construct(); $this->displayName = $this->l('Fedex Carrier'); $this->description = $this->l('Offer your customers, different delivery methods with Fedex'); $this->ps_versions_compliancy = array('min' => '1.4', 'max' => _PS_VERSION_); /** Backward compatibility 1.4 / 1.5 */ require dirname(__FILE__) . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Class Soap availibility if (!extension_loaded('soap')) { $warning[] = "'" . $this->l('Class Soap') . "', "; } // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Check calcul mode if (!Configuration::get('FEDEX_CARRIER_CALCUL_MODE')) { Configuration::updateValue('FEDEX_CARRIER_CALCUL_MODE', 'onepackage'); } // Checking Unit $this->_dimensionUnit = isset($this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]) ? $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))] : false; $this->_weightUnit = isset($this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]) ? $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))] : false; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
function __construct() { $this->name = 'socolissimo'; $this->tab = 'shipping_logistics'; $this->version = '2.7.6'; $this->author = 'PrestaShop'; $this->limited_countries = array('fr'); $this->module_key = 'faa857ecf7579947c8eee2d9b3d1fb04'; parent::__construct(); $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('So Colissimo'); $this->description = $this->l('Offer your customer 5 different delivery methods with LaPoste.'); $this->url = Tools::getProtocol() . htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8') . __PS_BASE_URI__ . 'modules/' . $this->name . '/validation.php'; /** Backward compatibility */ require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { $warning = array(); $soCarrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID')); if (Validate::isLoadedObject($soCarrier)) { if (!$this->checkZone((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Zone(s)\'') . ' '; } if (!$this->checkGroup((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Group\'') . ' '; } if (!$this->checkRange((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier Range(s)\'') . ' '; } if (!$this->checkDelivery((int) $soCarrier->id)) { $warning[] .= $this->l('\'Carrier price delivery\'') . ' '; } } //Check config and display warning if (!Configuration::get('SOCOLISSIMO_ID')) { $warning[] .= $this->l('\'Id FO\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_KEY')) { $warning[] .= $this->l('\'Key\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_URL')) { $warning[] .= $this->l('\'Url So\'') . ' '; } if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { $this->name = 'egdelivery'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'evgeny grishin'; $this->need_instance = 0; /** * Set $this->bootstrap to true if your module is compliant with bootstrap (PrestaShop 1.6) */ $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('delivery module'); $this->description = $this->l('Add a description for your module to help merchants to understand what he should use your module for'); $this->confirmUninstall = $this->l(''); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); }
public function __construct() { $this->name = 'canadapost'; $this->tab = 'shipping_logistics'; $this->version = '0.8'; $this->author = 'PrestaShop'; $this->limited_countries = array('ca'); parent::__construct(); $this->displayName = $this->l('Canada Post Rates Calculator'); $this->description = $this->l('Offer your customers, different delivery methods with Canada Post'); /** Backward compatibility */ require dirname(__FILE__) . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check cURL option availibility if (!is_callable('curl_exec')) { $warning[] = "'" . $this->l('cURL option') . "', "; } // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Check calcul mode if (!Configuration::get('CP_CARRIER_CALCUL_MODE')) { Configuration::updateValue('CP_CARRIER_CALCUL_MODE', 'onepackage'); } // Checking Unit $this->_dimensionUnit = $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]; $this->_weightUnit = $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { $this->name = 'ulozenka'; $this->uppername = strtoupper($this->name); $this->tab = 'shipping_logistics'; $this->version = '1.4.1'; $this->author = 'prestahost.cz'; $this->need_instance = 1; $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6.9'); // $this->dependencies = array('blockcart'); parent::__construct(); $this->displayName = $this->l('Ulozenka'); $this->description = $this->l('Module for ulozenka.cz'); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); if (!Configuration::get('ULOZENKA_ACCESS_CODE')) { $this->warning = $this->l('No ulozenka access code provided'); } }
public function __construct() { $this->name = 'dpdpoland'; $this->tab = 'shipping_logistics'; $this->version = '0.8.4'; $this->author = 'DPD Polska Sp. z o.o.'; parent::__construct(); $this->displayName = $this->l('DPD Polska Sp. z o.o.'); $this->description = $this->l('DPD Polska Sp. z o.o. shipping module'); if (version_compare(_PS_VERSION_, '1.5', '<')) { $this->context = new Context(); $this->smarty = $this->context->smarty; $this->context->smarty->assign('ps14', true); } if (defined('_PS_ADMIN_DIR_')) { $this->module_url = self::CURRENT_INDEX . Tools::getValue('token') . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name; } $this->bootstrap = true; }
public function __construct() { $this->name = 'uspscarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.3.3'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); $this->module_key = '9ac173da9614868dbd15c56cf8ad008a'; parent::__construct(); $this->displayName = $this->l('U.S.P.S. Rate Calulator'); $this->description = $this->l('Calculates shipping rates for United States Postal Service for Domestic shipping within the USA.'); $this->ps_versions_compliancy = array('min' => '1.4', 'max' => _PS_VERSION_); /** Backward compatibility 1.4 / 1.5 */ require dirname(__FILE__) . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $tab) { if (!Configuration::get($keyConfiguration) && isset($tab['name'])) { if (isset($tab['default'])) { Configuration::updateValue($keyConfiguration, $tab['default']); } else { $warning[] = '\'' . $tab['name'] . '\' '; } } } // Checking Unit $this->_dimensionUnit = isset($this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]) ? $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))] : false; $this->_weightUnit = isset($this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]) ? $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))] : false; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { $this->name = 'fedexcarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.2.5'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); parent::__construct(); $this->displayName = $this->l('Fedex Carrier'); $this->description = $this->l('Offer your customers, different delivery methods with Fedex'); if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Class Soap availibility if (!extension_loaded('soap')) { $warning[] = "'" . $this->l('Class Soap') . "', "; } // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Check calcul mode if (!Configuration::get('FEDEX_CARRIER_CALCUL_MODE')) { Configuration::updateValue('FEDEX_CARRIER_CALCUL_MODE', 'onepackage'); } // Checking Unit $this->_dimensionUnit = $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]; $this->_weightUnit = $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { $this->name = 'upscarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.2.3'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); $this->module_key = 'b7e680a4290c977bb35e3b28817b8348'; parent::__construct(); $this->displayName = $this->l('UPS Carrier'); $this->description = $this->l('Offer your customers, different delivery methods with UPS'); /** Backward compatibility 1.4 / 1.5 */ require dirname(__FILE__) . '/backward_compatibility/backward.php'; if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Check calcul mode if (!Configuration::get('UPS_CARRIER_CALCUL_MODE')) { Configuration::updateValue('UPS_CARRIER_CALCUL_MODE', 'split'); } // Checking Unit $this->_dimensionUnit = isset($this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]) ? $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))] : false; $this->_weightUnit = isset($this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]) ? $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))] : false; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly.') . ' '; } } }
public function __construct() { $this->name = 'send24'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'Roman Barbotkin'; $this->need_instance = 0; $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); $this->bootstrap = true; $this->module_key = '129aaa3794f9c9b6eef5a1b67441ed2b'; parent::__construct(); $this->displayName = $this->l('Send24 Shipping'); $this->description = $this->l('Offer your customers premium delivery service with Send24 Sameday Express solution.Easy integration into your webshop. Fast and secure delivery service from door to door.'); $this->confirmUninstall = $this->l('Are you sure you want to uninstall?'); // Register hook. $this->registerHook('header'); $this->registerHook('newOrder'); $this->registerHook('ActionCarrierUpdate'); $this->registerHook('AdminOrder'); }
public function __construct() { global $cookie; //TODO Iso code of countries where the module can be used, if none module available for all countries $this->limited_countries = array('fr'); $this->name = 'dejala'; $this->tab = 'shipping_logistics'; $this->version = 1.4; $this->internal_version = '1.4'; $this->id_lang = (!isset($cookie) or !is_object($cookie)) ? (int) Configuration::get('PS_LANG_DEFAULT') : (int) $cookie->id_lang; $this->wday_labels = array($this->l('Sunday'), $this->l('Monday'), $this->l('Tuesday'), $this->l('Wednesday'), $this->l('Thursday'), $this->l('Friday'), $this->l('Saturday')); $this->module_key = 'caad67cb7a18a43b5ef3ebd0b3d148ea'; parent::__construct(); // The parent construct is required for translations $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Dejala.com : Courier delivery'); $this->description = $this->l('Lets Dejala.com handle your deliveries by courier'); // load configuration only if installed if ($this->id) { if (true !== extension_loaded('curl')) { $this->warning = $this->l('The Dejala module requires php extension cURL to function properly. Please install the php extension "cURL"'); } $this->dejalaConfig = new DejalaConfig(); $this->dejalaConfig->loadConfig(); // Update table schema if (!isset($this->dejalaConfig->internal_version) || $this->dejalaConfig->internal_version < $this->internal_version) { $this->unregisterHook('cart'); $res = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'dejala_cart` LIMIT 1'); if ($res) { if (!array_key_exists('cart_date_upd', $res[0])) { Db::getInstance()->Execute('ALTER TABLE `' . _DB_PREFIX_ . 'dejala_cart` ADD COLUMN cart_date_upd DATETIME DEFAULT 0;'); } if (!array_key_exists('delivery_price', $res[0])) { Db::getInstance()->Execute('ALTER TABLE `' . _DB_PREFIX_ . 'dejala_cart` ADD COLUMN delivery_price FLOAT DEFAULT NULL;'); } } $this->dejalaConfig->internal_version = $this->internal_version; $this->dejalaConfig->saveConfig(); } } }
public function __construct() { $this->name = 'dpdgroup'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'Invertus'; $this->module_key = '8f6c90d2a004cd27f552fc11d1152846'; parent::__construct(); $this->displayName = $this->l('DPD Group'); $this->description = $this->l('DPD shipping module'); if (version_compare(_PS_VERSION_, '1.5', '<')) { $this->context = new Context(); $this->smarty = $this->context->smarty; $this->context->smarty->assign('ps14', true); } if (defined('_PS_ADMIN_DIR_')) { $this->module_url = self::CURRENT_INDEX . Tools::getValue('token') . '&configure=' . $this->name; } $this->bootstrap = (bool) version_compare(_PS_VERSION_, '1.6', '>='); $this->ps_14 = (bool) version_compare(_PS_VERSION_, '1.5', '<'); }
public function __construct() { $this->name = 'uspscarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.2.1'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); parent::__construct(); $this->displayName = $this->l('U.S.P.S. Rate Calulator'); $this->description = $this->l('Calculates shipping rates for United States Postal Service for Domestic shipping within the USA.'); if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $tab) { if (!Configuration::get($keyConfiguration) && isset($tab['name'])) { if (isset($tab['default'])) { Configuration::updateValue($keyConfiguration, $tab['default']); } else { $warning[] = '\'' . $tab['name'] . '\' '; } } } // Checking Unit $this->_dimensionUnit = $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]; $this->_weightUnit = $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { $this->name = 'chronopost'; $this->tab = 'shipping_logistics'; $this->version = '3.6.6'; $this->author = $this->l('Oxileo for Chronopost'); $this->module_key = '16ae9609f724c8d72cf3de62c060210c'; $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6'); parent::__construct(); $this->displayName = $this->l('Chronopost and ChronoRelais'); $this->description = $this->l('Manage Chronopost and Chronopost Pickup relay'); $this->confirmUninstall = $this->l('Remember, once this module is uninstalled , you won\'t be able to edit Chronopost waybills or propose Pickup delivery point to your customers. Are you sure you wish to proceed?'); // Check is SOAP is available if (!extension_loaded('soap')) { $this->warning .= $this->l('The SOAP extension is not available or configured on the server ; The module will not work without this extension ! Please contact your host to activate it in your PHP installation.'); } if (!self::checkPSVersion()) { $this->warning .= $this->l('This module is incompatible with your Prestashop installation. You can visit the <a href = "http://www.chronopost.fr/transport-express/livraison-colis/accueil/produits-tarifs/expertise-sectorielle/e-commerce/plateformes">Chronopost.fr </a>website to download a comptible version.'); } // Check is module is properly configured if (Tools::strlen(Configuration::get('CHRONOPOST_GENERAL_ACCOUNT')) < 8) { $this->warning .= $this->l('You have to configure the module with your Chronopost contract number. If you don\'t have one, please sign in to the following address <a href = "http://www.chronopost.fr/transport-express/livraison-colis/accueil/produits-tarifs/expertise-sectorielle/pid/8400" target = "_blank">www.mychrono.chronopost.fr</a>'); } }
public function __construct() { global $cookie; $this->name = 'upscarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.0'; $this->author = 'PrestaShop'; $this->limited_countries = array('us'); parent::__construct(); $this->displayName = $this->l('UPS Carrier'); $this->description = $this->l('Offer your customers, different delivery methods with UPS'); if (self::isInstalled($this->name)) { // Loading Var $warning = array(); $this->loadingVar(); // Check Configuration Values foreach ($this->_fieldsList as $keyConfiguration => $name) { if (!Configuration::get($keyConfiguration) && !empty($name)) { $warning[] = '\'' . $name . '\' '; } } // Checking Unit $this->_dimensionUnit = $this->_dimensionUnitList[strtoupper(Configuration::get('PS_DIMENSION_UNIT'))]; $this->_weightUnit = $this->_weightUnitList[strtoupper(Configuration::get('PS_WEIGHT_UNIT'))]; if (!$this->_weightUnit || !$this->_weightUnitList[$this->_weightUnit]) { $warning[] = $this->l('\'Weight Unit (LB or KG).\'') . ' '; } if (!$this->_dimensionUnit || !$this->_dimensionUnitList[$this->_dimensionUnit]) { $warning[] = $this->l('\'Dimension Unit (CM or IN).\'') . ' '; } // Generate Warnings if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly.') . ' '; } } }
public function __construct() { $this->name = 'socolissimo'; $this->tab = 'shipping_logistics'; $this->version = '2.9.22'; $this->author = 'Quadra Informatique'; $this->limited_countries = array('fr'); $this->module_key = 'faa857ecf7579947c8eee2d9b3d1fb04'; parent::__construct(); $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('So Colissimo'); $this->description = $this->l('Offer your customer 5 different delivery methods with LaPoste.'); $protocol = function_exists('Tools::getProtocol') ? Tools::getProtocol() : 'http://'; if (Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')) { $protocol = 'https://'; } $this->url = $protocol . Tools::getShopDomainSsl() . __PS_BASE_URI__ . 'modules/' . $this->name . '/validation.php'; /** Backward compatibility */ require _PS_MODULE_DIR_ . $this->name . '/backward_compatibility/backward.php'; if (version_compare(_PS_VERSION_, '1.5', '<')) { if (Configuration::get('SOCOLISSIMO_VERSION') != $this->version && Configuration::get('SOCOLISSIMO_VERSION')) { $this->runUpgrades(true); } } if (self::isInstalled($this->name)) { $warning = array(); $so_carrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID')); if (Validate::isLoadedObject($so_carrier)) { if (!$this->checkZone((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Zone(s)\'') . ' '; } if (!$this->checkGroup((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Group\'') . ' '; } if (!$this->checkRange((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Range(s)\'') . ' '; } if (!$this->checkDelivery((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier price delivery\'') . ' '; } } $so_carrier = new Carrier(Configuration::get('SOCOLISSIMO_CARRIER_ID_SELLER')); if (Validate::isLoadedObject($so_carrier)) { if (!$this->checkZone((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Zone(s)\'') . ' '; } if (!$this->checkGroup((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Group\'') . ' '; } if (!$this->checkRange((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier Range(s)\'') . ' '; } if (!$this->checkDelivery((int) $so_carrier->id)) { $warning[] .= $this->l('\'Carrier price delivery\'') . ' '; } } //Check config and display warning if (!Configuration::get('SOCOLISSIMO_ID')) { $warning[] .= $this->l('\'Id FO\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_KEY')) { $warning[] .= $this->l('\'Key\'') . ' '; } if (!Configuration::get('SOCOLISSIMO_URL')) { $warning[] .= $this->l('\'Url So\'') . ' '; } if (count($warning)) { $this->warning .= implode(' , ', $warning) . $this->l('must be configured to use this module correctly') . ' '; } } }
public function __construct() { parent::__construct(); }