当前位置: 首页>>代码示例>>PHP>>正文


PHP Configuration::getMultiple方法代码示例

本文整理汇总了PHP中Configuration::getMultiple方法的典型用法代码示例。如果您正苦于以下问题:PHP Configuration::getMultiple方法的具体用法?PHP Configuration::getMultiple怎么用?PHP Configuration::getMultiple使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Configuration的用法示例。


在下文中一共展示了Configuration::getMultiple方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: registerDiscount

 public function registerDiscount($id_customer, $register = false, $id_currency = 0)
 {
     $configurations = Configuration::getMultiple(array('REFERRAL_DISCOUNT_TYPE', 'REFERRAL_PERCENTAGE', 'REFERRAL_DISCOUNT_VALUE_' . (int) $id_currency));
     $cartRule = new CartRule();
     if ($configurations['REFERRAL_DISCOUNT_TYPE'] == Discount::PERCENT) {
         $cartRule->reduction_percent = (double) $configurations['REFERRAL_PERCENTAGE'];
     } elseif ($configurations['REFERRAL_DISCOUNT_TYPE'] == Discount::AMOUNT and isset($configurations['REFERRAL_DISCOUNT_VALUE_' . (int) $id_currency])) {
         $cartRule->reduction_amount = (double) $configurations['REFERRAL_DISCOUNT_VALUE_' . (int) $id_currency];
     }
     $cartRule->quantity = 1;
     $cartRule->quantity_per_user = 1;
     $cartRule->date_from = date('Y-m-d H:i:s', time());
     $cartRule->date_to = date('Y-m-d H:i:s', time() + 31536000);
     // + 1 year
     $cartRule->code = $this->getDiscountPrefix() . Tools::passwdGen(6);
     $cartRule->name = Configuration::getInt('REFERRAL_DISCOUNT_DESCRIPTION');
     $cartRule->id_customer = (int) $id_customer;
     $cartRule->id_currency = (int) $id_currency;
     if ($cartRule->add()) {
         if ($register != false) {
             if ($register == 'sponsor') {
                 $this->id_cart_rule_sponsor = (int) $cartRule->id;
             } elseif ($register == 'sponsored') {
                 $this->id_cart_rule = (int) $cartRule->id;
             }
             return $this->save();
         }
         return true;
     }
     return false;
 }
开发者ID:rrameshsat,项目名称:Prestashop,代码行数:31,代码来源:ReferralProgramModule.php

示例2: __construct

 /**
  * Costructor
  *
  * @return Liqpay
  */
 public function __construct()
 {
     $this->name = 'liqpay';
     $this->tab = 'payments_gateways';
     $this->version = '0.1';
     $this->author = 'Liqpay';
     $this->need_instance = 0;
     $params = array('LIQPAY_PUBLIC_KEY', 'LIQPAY_PRIVATE_KEY');
     $config = Configuration::getMultiple($params);
     if (isset($config['LIQPAY_PUBLIC_KEY']) && $config['LIQPAY_PUBLIC_KEY']) {
         $this->liqpay_public_key = $config['LIQPAY_PUBLIC_KEY'];
     }
     if (isset($config['LIQPAY_PRIVATE_KEY']) && $config['LIQPAY_PRIVATE_KEY']) {
         $this->liqpay_private_key = $config['LIQPAY_PRIVATE_KEY'];
     }
     parent::__construct();
     $this->page = basename(__FILE__, '.php');
     $this->displayName = 'Liqpay';
     $this->description = $this->l('Accept payments with Liqpay');
     $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
     $correctly = !isset($this->liqpay_public_key) or !isset($this->liqpay_private_key);
     if ($correctly) {
         $this->warning = $this->l('Your Liqpay account must be set correctly');
     }
 }
开发者ID:litalex,项目名称:plugin-prestashop,代码行数:30,代码来源:liqpay.php

示例3: getContent

    function getContent()
    {
        $configKeys = array('EBAY_SECURITY_TOKEN', 'PS_LANG_DEFAULT');
        // Load prestashop ebay's configuration
        $configs = Configuration::getMultiple($configKeys);
        $profile_configs = $this->ebay_profile->getMultiple(array('EBAY_DELIVERY_TIME', 'EBAY_ZONE_NATIONAL', 'EBAY_ZONE_INTERNATIONAL'));
        // Check if the module is configured
        if (!$this->ebay_profile->getConfiguration('EBAY_PAYPAL_EMAIL')) {
            $template_vars = array('error_form_shipping' => 'true');
            return $this->display('error_paypal_email.tpl', $template_vars);
        }
        $nb_shipping_zones_excluded = DB::getInstance()->getValue('SELECT COUNT(*) 
			FROM ' . _DB_PREFIX_ . 'ebay_shipping_zone_excluded
			WHERE `id_ebay_profile` = ' . (int) $this->ebay_profile->id);
        if (!$nb_shipping_zones_excluded) {
            EbayShippingZoneExcluded::loadEbayExcludedLocations($this->ebay_profile->id);
        }
        $module_filters = version_compare(_PS_VERSION_, '1.4.5', '>=') ? Carrier::CARRIERS_MODULE : 2;
        //INITIALIZE CACHE
        $psCarrierModule = $this->ebay_profile->getCarriers($configs['PS_LANG_DEFAULT'], false, false, false, null, $module_filters);
        $url_vars = array('id_tab' => '3', 'section' => 'shipping');
        if (version_compare(_PS_VERSION_, '1.5', '>')) {
            $url_vars['controller'] = Tools::getValue('controller');
        } else {
            $url_vars['tab'] = Tools::getValue('tab');
        }
        $zones = Zone::getZones(true);
        foreach ($zones as &$zone) {
            $zone['carriers'] = Carrier::getCarriers($this->context->language->id, false, false, $zone['id_zone']);
        }
        $template_vars = array('eBayCarrier' => EbayShippingService::getCarriers($this->ebay_profile->ebay_site_id), 'psCarrier' => $this->ebay_profile->getCarriers($configs['PS_LANG_DEFAULT']), 'psCarrierModule' => $psCarrierModule, 'existingNationalCarrier' => EbayShipping::getNationalShippings($this->ebay_profile->id), 'existingInternationalCarrier' => EbayShippingInternationalZone::getExistingInternationalCarrier($this->ebay_profile->id), 'deliveryTime' => $profile_configs['EBAY_DELIVERY_TIME'], 'prestashopZone' => Zone::getZones(), 'excludeShippingLocation' => EbayShippingZoneExcluded::cacheEbayExcludedLocation($this->ebay_profile->id), 'internationalShippingLocations' => EbayShippingLocation::getInternationalShippingLocations(), 'deliveryTimeOptions' => EbayDeliveryTimeOptions::getDeliveryTimeOptions(), 'formUrl' => $this->_getUrl($url_vars), 'ebayZoneNational' => isset($profile_configs['EBAY_ZONE_NATIONAL']) ? $profile_configs['EBAY_ZONE_NATIONAL'] : false, 'ebayZoneInternational' => isset($profile_configs['EBAY_ZONE_INTERNATIONAL']) ? $profile_configs['EBAY_ZONE_INTERNATIONAL'] : false, 'ebay_token' => $configs['EBAY_SECURITY_TOKEN'], 'id_ebay_profile' => $this->ebay_profile->id, 'newPrestashopZone' => $zones);
        return $this->display('shipping.tpl', $template_vars);
    }
开发者ID:kevindesousa,项目名称:ebay,代码行数:33,代码来源:EbayFormShippingTab.php

示例4: initContent

 public function initContent()
 {
     $cart = $this->context->cart;
     $payments = array();
     $payments['message'] = $this->module->l('The order status is not paid! Go to my account and then reorder');
     if ($cart) {
         $total_to_pay = $cart->getOrderTotal(true);
         $rub_currency_id = Currency::getIdByIsoCode('RUB');
         if ($cart->id_currency != $rub_currency_id) {
             $from_currency = new Currency($cart->id_curre1ncy);
             $to_currency = new Currency($rub_currency_id);
             $total_to_pay = Tools::convertPriceFull($total_to_pay, $from_currency, $to_currency);
         }
         $display = '';
         if (Configuration::get('YA_P2P_ACTIVE')) {
             $vars_p2p = Configuration::getMultiple(array('YA_P2P_NUMBER', 'YA_P2P_ACTIVE'));
             $this->context->smarty->assign(array('DATA_P2P' => $vars_p2p, 'price' => number_format($total_to_pay, 2, '.', ''), 'cart' => $this->context->cart));
             $display .= $this->display(__FILE__, 'payment.tpl');
         }
         if (Configuration::get('YA_ORG_ACTIVE')) {
             $vars_org = Configuration::getMultiple(array('YA_ORG_SHOPID', 'YA_ORG_SCID', 'YA_ORG_ACTIVE', 'YA_ORG_TYPE'));
             $this->context->smarty->assign(array('DATA_ORG' => $vars_org, 'id_cart' => $cart->id, 'customer' => new Customer($cart->id_customer), 'address' => new Address($this->context->cart->id_address_delivery), 'total_to_pay' => number_format($total_to_pay, 2, '.', ''), 'this_path_ssl' => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'modules/' . $this->module->name . '/', 'shop_name' => Configuration::get('PS_SHOP_NAME')));
             $payments = Configuration::getMultiple(array('YA_ORG_PAYMENT_YANDEX', 'YA_ORG_PAYMENT_CARD', 'YA_ORG_PAYMENT_MOBILE', 'YA_ORG_PAYMENT_WEBMONEY', 'YA_ORG_PAYMENT_TERMINAL', 'YA_ORG_PAYMENT_SBER', 'YA_ORG_PAYMENT_PB', 'YA_ORG_PAYMENT_MA', 'YA_ORG_PAYMENT_ALFA'));
             if (Configuration::get('YA_ORG_INSIDE')) {
                 $payments['pt'] = Tools::getValue('type');
             } else {
                 $payments['pt'] = '';
             }
         }
     }
     $this->context->smarty->assign($payments);
     return $this->setTemplate('redirectk.tpl');
 }
开发者ID:V1dun,项目名称:yandex-money-cms-prestashop,代码行数:33,代码来源:redirectk.php

示例5: _init

 protected function _init()
 {
     $config = Configuration::getMultiple(array('PAYPAL_HEADER', 'PAYPAL_SANDBOX', 'PAYPAL_API_USER', 'PAYPAL_API_PASSWORD', 'PAYPAL_API_SIGNATURE', 'PAYPAL_EXPRESS_CHECKOUT', 'PAYPAL_INTEGRAL', 'PAYPAL_OPTION_PLUS'));
     if (isset($config['PAYPAL_HEADER'])) {
         $this->_header = $config['PAYPAL_HEADER'];
     }
     if (isset($config['PAYPAL_SANDBOX'])) {
         $this->_sandbox = $config['PAYPAL_SANDBOX'];
     }
     if (isset($config['PAYPAL_API_USER'])) {
         $this->_apiUser = $config['PAYPAL_API_USER'];
     }
     if (isset($config['PAYPAL_API_PASSWORD'])) {
         $this->_apiPassword = $config['PAYPAL_API_PASSWORD'];
     }
     if (isset($config['PAYPAL_API_SIGNATURE'])) {
         $this->_apiSignature = $config['PAYPAL_API_SIGNATURE'];
     }
     if (isset($config['PAYPAL_EXPRESS_CHECKOUT'])) {
         $this->_expressCheckout = $config['PAYPAL_EXPRESS_CHECKOUT'];
     }
     if (isset($config['PAYPAL_INTEGRAL'])) {
         $this->_pp_integral = $config['PAYPAL_INTEGRAL'];
     }
 }
开发者ID:vincent,项目名称:theinvertebrates,代码行数:25,代码来源:paypalapi.php

示例6: __construct

 public function __construct()
 {
     $this->name = 'eko_ctt';
     $this->tab = 'shipping_logistics';
     $this->version = '0.2.0';
     $this->author = 'ekosshop';
     $this->ctt_URL = "http://www.ctt.pt/feapl_2/app/open/objectSearch/objectSearch.jspx";
     $config = Configuration::getMultiple(array('EKO_CTT_CRON', 'EKO_CTT_CHANGE_STATS', 'EKO_CTT_OS_0', 'EKO_CTT_OS_1', 'EKO_CTT_TR_0', 'EKO_CTT_TR_1'));
     if (isset($config['EKO_CTT_CRON'])) {
         $this->ctt_cron = $config['EKO_CTT_CRON'];
     }
     if (isset($config['EKO_CTT_CHANGE_STATS'])) {
         $this->ctt_change = $config['EKO_CTT_CHANGE_STATS'];
     }
     if (isset($config['EKO_CTT_OS_0'])) {
         $this->ctt_os_0 = $config['EKO_CTT_OS_0'];
     }
     if (isset($config['EKO_CTT_OS_1'])) {
         $this->ctt_os_1 = $config['EKO_CTT_OS_1'];
     }
     if (isset($config['EKO_CTT_TR_0'])) {
         $this->ctt_tr_0 = $config['EKO_CTT_TR_0'];
     }
     if (isset($config['EKO_CTT_TR_1'])) {
         $this->ctt_tr_1 = $config['EKO_CTT_TR_1'];
     }
     $this->bootstrap = true;
     parent::__construct();
     $this->displayName = $this->l('CTT Tracking');
     $this->description = $this->l('Tracking CTT Shipment');
     $this->confirmUninstall = $this->l('Are you sure about removing this module?');
     $this->ctt_Status = array(0 => array('id' => 999001, 'name' => $this->l('Delivered')), 1 => array('id' => 999002, 'name' => $this->l('Available for Pickup')), 2 => array('id' => 999003, 'name' => $this->l('Shipment address incomplete')), 3 => array('id' => 999004, 'name' => $this->l('Not Delivered')), 4 => array('id' => 999005, 'name' => $this->l('In Transit')), 5 => array('id' => 999006, 'name' => $this->l('Shipment')), 6 => array('id' => 999007, 'name' => $this->l('Pickup')), 7 => array('id' => 999008, 'name' => $this->l('Create New Label')), 8 => array('id' => 999009, 'name' => $this->l('International delivery')), 9 => array('id' => 999010, 'name' => $this->l('International Shipment')), 10 => array('id' => 999011, 'name' => $this->l('Waiting for legal procedure.')), 11 => array('id' => 999012, 'name' => $this->l('Release through customs')), 12 => array('id' => 999013, 'name' => $this->l('For customs presentation')), 13 => array('id' => 999014, 'name' => $this->l('Object unclaimed, returned')));
 }
开发者ID:RhaPT,项目名称:eko_ctt,代码行数:33,代码来源:eko_ctt.php

示例7: __construct

 public function __construct()
 {
     $this->name = 'bankwire';
     $this->tab = 'payments_gateways';
     $this->version = '1.0.8';
     $this->author = 'PrestaShop';
     $this->controllers = array('payment', 'validation');
     $this->is_eu_compatible = 1;
     $this->currencies = true;
     $this->currencies_mode = 'checkbox';
     $config = Configuration::getMultiple(array('BANK_WIRE_DETAILS', 'BANK_WIRE_OWNER', 'BANK_WIRE_ADDRESS'));
     if (!empty($config['BANK_WIRE_OWNER'])) {
         $this->owner = $config['BANK_WIRE_OWNER'];
     }
     if (!empty($config['BANK_WIRE_DETAILS'])) {
         $this->details = $config['BANK_WIRE_DETAILS'];
     }
     if (!empty($config['BANK_WIRE_ADDRESS'])) {
         $this->address = $config['BANK_WIRE_ADDRESS'];
     }
     $this->bootstrap = true;
     parent::__construct();
     $this->displayName = $this->l('Bank wire');
     $this->description = $this->l('Accept payments for your products via bank wire transfer.');
     $this->confirmUninstall = $this->l('Are you sure about removing these details?');
     if (!isset($this->owner) || !isset($this->details) || !isset($this->address)) {
         $this->warning = $this->l('Account owner and account details must be configured before using this module.');
     }
     if (!count(Currency::checkPaymentCurrencies($this->id))) {
         $this->warning = $this->l('No currency has been set for this module.');
     }
     $this->extra_mail_vars = array('{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')));
 }
开发者ID:rizccie,项目名称:officeneeds,代码行数:33,代码来源:bankwire.php

示例8: initContent

 public function initContent()
 {
     $cart = $this->context->cart;
     $payments = array();
     $payments['message'] = $this->module->l('Заказ в статусе не оплачен! Перейдите в личный кабинет и нажмите перезаказ');
     if ($cart) {
         $total_to_pay = $cart->getOrderTotal(true);
         $rub_currency_id = Currency::getIdByIsoCode('RUB');
         if ($cart->id_currency != $rub_currency_id) {
             $from_currency = new Currency($cart->id_curre1ncy);
             $to_currency = new Currency($rub_currency_id);
             $total_to_pay = Tools::convertPriceFull($total_to_pay, $from_currency, $to_currency);
         }
         $display = '';
         if (Configuration::get('YA_P2P_ACTIVE')) {
             $vars_p2p = Configuration::getMultiple(array('YA_P2P_NUMBER', 'YA_P2P_ACTIVE'));
             $this->context->smarty->assign(array('DATA_P2P' => $vars_p2p, 'price' => number_format($total_to_pay, 2, '.', ''), 'cart' => $this->context->cart));
             $display .= $this->display(__FILE__, 'payment.tpl');
         }
         if (Configuration::get('YA_ORG_ACTIVE')) {
             $vars_org = Configuration::getMultiple(array('YA_ORG_SHOPID', 'YA_ORG_SCID', 'YA_ORG_ACTIVE', 'YA_ORG_TYPE'));
             $this->context->smarty->assign(array('DATA_ORG' => $vars_org, 'id_cart' => $cart->id, 'customer' => new Customer($cart->id_customer), 'address' => new Address($this->context->cart->id_address_delivery), 'total_to_pay' => number_format($total_to_pay, 2, '.', ''), 'this_path_ssl' => Tools::getShopDomainSsl(true, true) . __PS_BASE_URI__ . 'modules/' . $this->module->name . '/', 'shop_name' => Configuration::get('PS_SHOP_NAME')));
             $payments = Configuration::getMultiple(array('YA_ORG_PAYMENT_YANDEX', 'YA_ORG_PAYMENT_CARD', 'YA_ORG_PAYMENT_MOBILE', 'YA_ORG_PAYMENT_WEBMONEY', 'YA_ORG_PAYMENT_TERMINAL', 'YA_ORG_PAYMENT_SBER', 'YA_ORG_PAYMENT_PB', 'YA_ORG_PAYMENT_MA', 'YA_ORG_PAYMENT_ALFA'));
             $payments['pt'] = Tools::getValue('type');
         }
         //$this->module->validateOrder((int)$cart->id, _PS_OS_PREPARATION_, $cart->getOrderTotal(true, Cart::BOTH), $this->module->displayName, NULL, array(), NULL, false, $cart->secure_key);
     }
     $this->context->smarty->assign($payments);
     return $this->setTemplate('redirectk.tpl');
 }
开发者ID:petr-repyev,项目名称:yandex-money-cms-prestashop,代码行数:30,代码来源:redirectk.php

示例9: disableUsesAddress

 public static function disableUsesAddress($order)
 {
     if (Validate::isLoadedObject($order)) {
         $address = new Address((int) $order->id_address_delivery);
         if (Validate::isLoadedObject($address)) {
             $default_address = Configuration::getMultiple(array('SHIPTOMYID_DEFAULT_ADDR_ADDRESS', 'SHIPTOMYID_DEFAULT_ADDR_ADDRESS2', 'SHIPTOMYID_DEFAULT_ADDR_CITY', 'SHIPTOMYID_DEFAULT_ADDR_POSTCODE', 'SHIPTOMYID_DEFAULT_ADDR_COUNTRY', 'SHIPTOMYID_DEFAULT_ADDR_STATE', 'SHIPTOMYID_DEFAULT_ADDR_PHONE', 'SHIPTOMYID_DEFAULT_ADDR_ALIAS'));
             if (Validate::isAddress($default_address['SHIPTOMYID_DEFAULT_ADDR_ADDRESS'])) {
                 $address->address1 = Tools::substr($default_address['SHIPTOMYID_DEFAULT_ADDR_ADDRESS'], 0, 128);
             }
             if (Validate::isAddress($default_address['SHIPTOMYID_DEFAULT_ADDR_ADDRESS2'])) {
                 $address->address2 = Tools::substr($default_address['SHIPTOMYID_DEFAULT_ADDR_ADDRESS2'], 0, 128);
             }
             if (Validate::isCityName($default_address['SHIPTOMYID_DEFAULT_ADDR_CITY'])) {
                 $address->city = Tools::substr($default_address['SHIPTOMYID_DEFAULT_ADDR_CITY'], 0, 64);
             }
             if (Validate::isPostCode($default_address['SHIPTOMYID_DEFAULT_ADDR_POSTCODE'])) {
                 $address->postcode = Tools::substr($default_address['SHIPTOMYID_DEFAULT_ADDR_POSTCODE'], 0, 12);
             }
             if (Validate::isPhoneNumber($default_address['SHIPTOMYID_DEFAULT_ADDR_PHONE'])) {
                 $address->phone = Tools::substr($default_address['SHIPTOMYID_DEFAULT_ADDR_PHONE'], 0, 32);
             }
             $address->id_country = (int) $default_address['SHIPTOMYID_DEFAULT_ADDR_COUNTRY'];
             $address->id_state = (int) $default_address['SHIPTOMYID_DEFAULT_ADDR_STATE'];
             $address->update();
         }
     }
     Db::getInstance()->Execute('UPDATE ' . _DB_PREFIX_ . 'address SET deleted = 1 WHERE id_address = ' . (int) $order->id_address_delivery);
 }
开发者ID:ac3gam3r,项目名称:Maxokraft,代码行数:28,代码来源:ShiptomyidOrder.php

示例10: registerDiscount

 public function registerDiscount($id_customer, $register = false)
 {
     $configurations = Configuration::getMultiple(array('REFERRAL_DISCOUNT_TYPE', 'REFERRAL_DISCOUNT_VALUE'));
     $discount = new Discount();
     $discount->id_discount_type = intval($configurations['REFERRAL_DISCOUNT_TYPE']);
     $discount->value = floatval($configurations['REFERRAL_DISCOUNT_VALUE']);
     $discount->quantity = 1;
     $discount->quantity_per_user = 1;
     $discount->date_from = date('Y-m-d H:i:s', time());
     $discount->date_to = date('Y-m-d H:i:s', time() + 31536000);
     // + 1 year
     $discount->name = $this->getDiscountPrefix() . Tools::passwdGen(6);
     $discount->description = Configuration::getInt('REFERRAL_DISCOUNT_DESCRIPTION');
     $discount->id_customer = intval($id_customer);
     if ($discount->add()) {
         if ($register != false) {
             if ($register == 'sponsor') {
                 $this->id_discount_sponsor = $discount->id;
             } elseif ($register == 'sponsored') {
                 $this->id_discount = $discount->id;
             }
             return $this->save();
         }
         return true;
     }
     return false;
 }
开发者ID:Bruno-2M,项目名称:prestashop,代码行数:27,代码来源:ReferralProgramModule.php

示例11: __construct

 public function __construct()
 {
     $this->name = 'cheque';
     $this->tab = 'payments_gateways';
     $this->version = '2.3';
     $this->author = 'PrestaShop';
     $this->currencies = true;
     $this->currencies_mode = 'checkbox';
     $config = Configuration::getMultiple(array('CHEQUE_NAME', 'CHEQUE_ADDRESS'));
     if (isset($config['CHEQUE_NAME'])) {
         $this->chequeName = $config['CHEQUE_NAME'];
     }
     if (isset($config['CHEQUE_ADDRESS'])) {
         $this->address = $config['CHEQUE_ADDRESS'];
     }
     parent::__construct();
     $this->displayName = $this->l('Check');
     $this->description = $this->l('Module for accepting payments by check.');
     $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
     if ($this->active && (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address))) {
         $this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
     }
     if ($this->active && !count(Currency::checkPaymentCurrencies($this->id))) {
         $this->warning = $this->l('No currency set for this module');
     }
     $this->extra_mail_vars = array('{cheque_name}' => Configuration::get('CHEQUE_NAME'), '{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'), '{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS')));
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:27,代码来源:cheque.php

示例12: __construct

 public function __construct()
 {
     $this->name = 'sign2pay';
     $this->tab = 'payments_gateways';
     $this->version = '0.1.0';
     $this->author = 'Berkan Düzgün';
     $this->controllers = array('payment', 'validation');
     $this->availableCurrencies = array('EUR');
     $config = Configuration::getMultiple(array('SIGN2PAY_APPLICATION_TOKEN', 'SIGN2PAY_MERCHANT_ID', 'SIGN2PAY_API_TOKEN'));
     if (!empty($config['SIGN2PAY_MERCHANT_ID'])) {
         $this->merchandId = $config['SIGN2PAY_MERCHANT_ID'];
     }
     if (!empty($config['SIGN2PAY_APPLICATION_TOKEN'])) {
         $this->applicationToken = $config['SIGN2PAY_APPLICATION_TOKEN'];
     }
     if (!empty($config['SIGN2PAY_API_TOKEN'])) {
         $this->apiToken = $config['SIGN2PAY_API_TOKEN'];
     }
     parent::__construct();
     $this->displayName = $this->l('Sign2Pay');
     $this->description = $this->l('Sign2Pay payment method.');
     $this->confirmUninstall = $this->l('Are you sure about removing these details?');
     if (!isset($this->merchandId) || !isset($this->applicationToken) || !isset($this->apiToken)) {
         $this->warning = $this->l('API credentials must be configured before using this module.');
     }
     if (!count(Currency::checkPaymentCurrencies($this->id))) {
         $this->warning = $this->l('No currency has been set for this module.');
     }
     $this->extra_mail_vars = array('{sign2pay_merchant_id}' => Configuration::get('SIGN2PAY_MERCHANT_ID'), '{sign2pay_application_token}' => nl2br(Configuration::get('SIGN2PAY_APPLICATION_TOKEN')), '{sign2pay_api_token}' => nl2br(Configuration::get('SIGN2PAY_API_TOKEN')));
 }
开发者ID:berkanduzgun,项目名称:prestashop-sign2pay,代码行数:30,代码来源:sign2pay.php

示例13: init

 public function init()
 {
     ${"GLOBALS"}["pcwndnxzm"] = "isoTinyMCE";
     parent::init();
     ${"GLOBALS"}["akprgggjmj"] = "languages";
     ${"GLOBALS"}["tbvspw"] = "deflang";
     ${"GLOBALS"}["vhicmlpg"] = "custom_labels";
     ${${"GLOBALS"}["tbvspw"]} = new Language(self::$cookie->id_lang);
     $tmulinwrlntj = "str_custom_multi_lang_fields";
     ${"GLOBALS"}["ktemnns"] = "custom_multi_lang_fields";
     ${${"GLOBALS"}["gdwbgebyw"]} = file_exists(_PS_ROOT_DIR_ . "/js/tiny_mce/langs/" . $deflang->iso_code . ".js") ? $deflang->iso_code : "en";
     ${${"GLOBALS"}["iffkuw"]} = str_replace("\\", "\\\\", dirname($_SERVER["PHP_SELF"]));
     ${${"GLOBALS"}["akprgggjmj"]} = Language::getLanguages(false);
     ${"GLOBALS"}["aecuqgnp"] = "custom_multi_lang_fields";
     ${${"GLOBALS"}["ijwyqrvm"]} = new AgileMultipleSeller();
     ${${"GLOBALS"}["iqpxuil"]} = Configuration::getMultiple($sellermodule->getCustomFields());
     ${${"GLOBALS"}["vhicmlpg"]} = $sellermodule->getCustomLabels(":");
     ${"GLOBALS"}["ppyvhso"] = "custom_labels";
     ${${"GLOBALS"}["aecuqgnp"]} = SellerInfo::getCustomMultiLanguageFields();
     ${$tmulinwrlntj} = "";
     ${"GLOBALS"}["wsahmoa"] = "isoTinyMCE";
     foreach (${${"GLOBALS"}["ktemnns"]} as ${${"GLOBALS"}["jbuucd"]}) {
         ${"GLOBALS"}["krcvdjennfj"] = "custom_multi_lang_field";
         ${${"GLOBALS"}["lkuqcxcngl"]} .= "&curren;" . ${${"GLOBALS"}["krcvdjennfj"]};
     }
     self::$smarty->assign(array("seller_tab_id" => 2, "ad" => ${${"GLOBALS"}["iffkuw"]}, "isoTinyMCE" => ${${"GLOBALS"}["pcwndnxzm"]}, "theme_css_dir" => _THEME_CSS_DIR_, "languages" => ${${"GLOBALS"}["tgpizrhrpccv"]}, "current_id_lang" => self::$cookie->id_lang, "conf" => ${${"GLOBALS"}["iqpxuil"]}, "custom_labels" => ${${"GLOBALS"}["ppyvhso"]}, "str_custom_multi_lang_fields" => ${${"GLOBALS"}["lkuqcxcngl"]}, "shop_url_mode" => (int) Configuration::get("ASP_SHOP_URL_MODE"), "iso_code" => ${${"GLOBALS"}["wsahmoa"]}));
 }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:27,代码来源:sellerbusiness.php

示例14: __construct

 public function __construct()
 {
     $this->name = 'cashondelivery';
     $this->tab = 'payments_gateways';
     $this->version = '0.7.5';
     $this->author = 'PrestaShop';
     $this->need_instance = 1;
     $this->controllers = array('validation');
     $this->is_eu_compatible = 1;
     $this->currencies = false;
     $config = Configuration::getMultiple(array('COD_CARRIERS', 'COD_FEE', 'COD_FEEFREE', 'COD_FEEMIN', 'COD_FEEMAX'));
     $this->fee = floatval($config['COD_FEE']);
     $this->feefree = floatval($config['COD_FEEFREE']);
     $this->feemin = floatval($config['COD_FEEMIN']);
     $this->feemax = floatval($config['COD_FEEMAX']);
     if (!empty($config['COD_CARRIERS'])) {
         $this->allowed_carriers = unserialize($config['COD_CARRIERS']);
     }
     $this->bootstrap = true;
     parent::__construct();
     $this->displayName = $this->l('Cash on delivery (COD)');
     $this->description = $this->l('Accept cash on delivery payments');
     /* For 1.4.3 and less compatibility */
     $updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT');
     if (!Configuration::get('PS_OS_PAYMENT')) {
         foreach ($updateConfig as $u) {
             if (!Configuration::get($u) && defined('_' . $u . '_')) {
                 Configuration::updateValue($u, constant('_' . $u . '_'));
             }
         }
     }
 }
开发者ID:fjhorrillo,项目名称:cashondelivery,代码行数:32,代码来源:cashondelivery.php

示例15: getContent

 function getContent()
 {
     $is_one_dot_five = version_compare(_PS_VERSION_, '1.5', '>');
     // Load prestashop ebay's configuration
     $configs = Configuration::getMultiple(array('EBAY_CATEGORY_LOADED_' . $this->ebay_profile->ebay_site_id, 'EBAY_SECURITY_TOKEN'));
     // Check if the module is configured
     if (!$this->ebay_profile->getConfiguration('EBAY_PAYPAL_EMAIL')) {
         return $this->display('error_paypal_email.tpl', array('error_form_category', 'true'));
     }
     // Load categories only if necessary
     if (EbayCategoryConfiguration::getTotalCategoryConfigurations($this->ebay_profile->id) && Tools::getValue('section') != 'category') {
         $template_vars = array('isOneDotFive' => $is_one_dot_five, 'controller' => Tools::getValue('controller'), 'tab' => Tools::getValue('tab'), 'configure' => Tools::getValue('configure'), 'token' => Tools::getValue('token'), 'tab_module' => Tools::getValue('tab_module'), 'module_name' => Tools::getValue('module_name'), 'form_categories' => EbaySynchronizer::getNbSynchronizableEbayCategorie($this->ebay_profile->id));
         return $this->display('pre_form_categories.tpl', $template_vars);
     }
     // Display eBay Categories
     $ebay_site_id = $this->ebay_profile->ebay_site_id;
     if (!isset($configs['EBAY_CATEGORY_LOADED_' . $ebay_site_id]) || !$configs['EBAY_CATEGORY_LOADED_' . $ebay_site_id] || !EbayCategory::areCategoryLoaded($ebay_site_id)) {
         $ebay_request = new EbayRequest();
         EbayCategory::insertCategories($ebay_site_id, $ebay_request->getCategories(), $ebay_request->getCategoriesSkuCompliancy());
         Configuration::updateValue('EBAY_CATEGORY_LOADED_' . $ebay_site_id, 1);
     }
     // Smarty
     $template_vars = array('alerts' => $this->_getAlertCategories(), 'tabHelp' => '&id_tab=7', 'id_lang' => $this->context->cookie->id_lang, 'id_ebay_profile' => $this->ebay_profile->id, '_path' => $this->path, 'configs' => $configs, '_module_dir_' => _MODULE_DIR_, 'isOneDotFive' => $is_one_dot_five, 'request_uri' => $_SERVER['REQUEST_URI'], 'controller' => Tools::getValue('controller'), 'tab' => Tools::getValue('tab'), 'configure' => Tools::getValue('configure'), 'token' => Tools::getValue('token'), 'tab_module' => Tools::getValue('tab_module'), 'module_name' => Tools::getValue('module_name'), 'date' => pSQL(date('Ymdhis')), 'form_categories' => EbaySynchronizer::getNbSynchronizableEbayCategorie($this->ebay_profile->id), 'nb_categorie' => count(Category::getCategories($this->context->cookie->id_lang, true, false)));
     return $this->display('form_categories.tpl', $template_vars);
 }
开发者ID:kevindesousa,项目名称:ebay,代码行数:25,代码来源:EbayFormCategoryTab.php


注:本文中的Configuration::getMultiple方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。