Ejemplo n.º 1
0
 protected function _construct()
 {
     parent::_construct();
     $_billingOrigin = array();
     if (Mage::helper('xpos')->aboveVersion('1.5')) {
         $this->_billingOrigin['city'] = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_CITY);
         $this->_billingOrigin['country_id'] = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_COUNTRY_ID);
         $this->_billingOrigin['region'] = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_REGION_ID);
         $this->_billingOrigin['postcode'] = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_POSTCODE);
     } else {
         $this->_billingOrigin['city'] = Mage::getStoreConfig('shipping/origin/city');
         $this->_billingOrigin['country_id'] = Mage::getStoreConfig('shipping/origin/country_id');
         $this->_billingOrigin['region'] = Mage::getStoreConfig('shipping/origin/region_id');
         $this->_billingOrigin['postcode'] = Mage::getStoreConfig('shipping/origin/postcode');
     }
     $this->_storeid = Mage::getStoreConfig('xpos/general/storeid');
 }