Esempio n. 1
0
 private function getCountryIdByName($name)
 {
     if (empty($this->_countries[$name])) {
         $this->_countries[$name] = Shopfunctions::getCountryIDByName($name);
     }
     return $this->_countries[$name];
 }
Esempio n. 2
0
 private function getCountryIdByName($name)
 {
     if ($name == 'FXX') {
         $name = 'FRA';
     }
     //France métropolotaine was removed
     if ($name == 'XJE') {
         $name = 'JEY';
     }
     //Jersey code was changed
     //if ($name=='MNE') $name='MNE'; //Montenegro was removed
     if (!class_exists('ShopFunctions')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'shopfunctions.php';
     }
     if (empty($this->_countries[$name])) {
         $this->_countries[$name] = Shopfunctions::getCountryIDByName($name);
     }
     return $this->_countries[$name];
 }