コード例 #1
0
    public function __construct()
    {
        $this->name = 'shiptomyid';
        $this->tab = 'smart_shopping';
        $this->author = 'NewQuest';
        $this->version = '1.0.2';
        $this->module_key = '473d95eea00946df7f84cbb445f94240';
        if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
            // For PS_1.6
            $this->bootstrap = true;
        }
        parent::__construct();
        $this->displayName = $this->l('Ship2MyId');
        $this->description = $this->l('Generate new transactions not possible before. Users can now ship to any cell, 
		email or social ID without requiring address. It\'s like Paypal but for Shipping.');
        // Configuration vars //
        self::$os_waiting = Configuration::get('SHIPTOMYID_OS_WAITING');
        self::$os_ready = Configuration::get('SHIPTOMYID_OS_READY');
        self::$os_error = Configuration::get('SHIPTOMYID_OS_ERROR');
        self::$os_cancel = Configuration::get('SHIPTOMYID_CANCEL_ORDER_STATE');
        self::$os_ps_canceled = Configuration::get('PS_OS_CANCELED');
        self::$os_ps_delivered = Configuration::get('PS_OS_DELIVERED');
        // Instanciate API //
        $this->api = new ShiptoAPI();
    }
コード例 #2
0
ファイル: shiptomyid.php プロジェクト: ac3gam3r/Maxokraft
    public function __construct()
    {
        $this->name = 'shiptomyid';
        $this->tab = 'smart_shopping';
        $this->author = 'NewQuest';
        $this->version = '1.0.1';
        $this->module_key = '473d95eea00946df7f84cbb445f94240';
        if (class_exists('Tools') && method_exists('Tools', 'version_compare') && Tools::version_compare(_PS_VERSION_, '1.6', '>=') === true) {
            // For PS_1.6
            $this->bootstrap = true;
        }
        parent::__construct();
        $this->displayName = $this->l('Ship2MyId');
        $this->description = $this->l('Send real gifts and packages to an email, 
		mobile phone or social account, Increase your online transactions, Increasing your customer base.');
        // Configuration vars //
        self::$os_waiting = Configuration::get('SHIPTOMYID_OS_WAITING');
        self::$os_ready = Configuration::get('SHIPTOMYID_OS_READY');
        self::$os_error = Configuration::get('SHIPTOMYID_OS_ERROR');
        self::$os_cancel = Configuration::get('SHIPTOMYID_CANCEL_ORDER_STATE');
        self::$os_ps_canceled = Configuration::get('PS_OS_CANCELED');
        self::$os_ps_delivered = Configuration::get('PS_OS_DELIVERED');
        // Instanciate API //
        $this->api = new ShiptoAPI();
    }