示例#1
0
 public function __construct()
 {
     parent::__construct();
     foreach ($this->getCode('condition_name') as $k => $v) {
         $this->_conditionNames[] = $k;
     }
 }
 public function __construct($registry)
 {
     parent::__construct($registry);
     if (Mage::getStoreConfig('carriers/' . $this->_code . '/sandbox')) {
         $this->_sandboxMode = true;
     } else {
         $this->_sandboxMode = false;
     }
     if ($this->_sandboxMode == false) {
         $this->PRODUCTION_KEY = Mage::getStoreConfig('carriers/' . $this->_code . '/prokey');
         $this->PRODUCTION_PASS = Mage::getStoreConfig('carriers/' . $this->_code . '/propass');
         $this->BILLING_ACCOUNT = Mage::getStoreConfig('carriers/' . $this->_code . '/billingaccount');
         $this->REGISTERED_ACCOUNT = Mage::getStoreConfig('carriers/' . $this->_code . '/registeredaccount');
     } else {
         $this->PRODUCTION_KEY = "57f5b17d6f4c43229f86b5cb0af78d0b";
         $this->PRODUCTION_PASS = "******";
         $this->BILLING_ACCOUNT = "9999999999";
         $this->REGISTERED_ACCOUNT = "9999999999";
     }
 }
示例#3
0
 /**
  * Class constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
示例#4
0
 /**
  * @param array $data
  */
 public function __construct(array $data = array())
 {
     $this->_helper = Mage::helper('ch_ems');
     $this->_code = self::CARRIER_CODE;
     parent::__construct($data);
 }