OpenCart 🇺🇦

Метод ModelOpenbayEbayOrder::getCountryAddressFormat(...)

Схема

public mixed getCountryAddressFormat ( $iso2 )

Аргументы

Аргумент Возможный тип Описание
$iso2

Описание

Метод пока еще не документирован.

Исходный код

$this->openbay->ebay->log('getCountryAddressFormat() - Getting country from ISO2: '.$iso2);

$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "country` WHERE `iso_code_2` = '".$this->db->escape($iso2)."' LIMIT 1");

if(!isset($query->row['address_format']) || $query->row['address_format'] == '') {
	$this->openbay->ebay->log('getCountryAddressFormat() - No country found, default');
	return false;
}else{
	$this->openbay->ebay->log('getCountryAddressFormat() - found country: '.$query->row['address_format']);
	return $query->row['address_format'];
}