You will need to alter a core file ... one that's often touched by a lot of plugins too. (I say that because you'll need to take care to preserve your changes anytime you touch the file.)
/includes/functions/functions_general.php
Around line 1397 (in v1.5.5 anyway) you'll find this:
Code:
/** * return an array with zones defined for the specified country
*/
function zen_get_country_zones($country_id) {
global $db;
$zones_array = array();
$zones = $db->Execute("select zone_id, zone_name
from " . TABLE_ZONES . "
where zone_country_id = '" . (int)$country_id . "'
order by zone_name");
while (!$zones->EOF) {
$zones_array[] = array('id' => $zones->fields['zone_id'],
'text' => $zones->fields['zone_name']);
$zones->MoveNext();
}
return $zones_array;
}
Change it in the 2 places (not 3) as highlighted here:
Code:
/**
* return an array with zones defined for the specified country
*/
function zen_get_country_zones($country_id) {
global $db;
$zones_array = array();
$zones = $db->Execute("select zone_id, zone_name, zone_code
from " . TABLE_ZONES . "
where zone_country_id = '" . (int)$country_id . "'
order by zone_name");
while (!$zones->EOF) {
$zones_array[] = array('id' => $zones->fields['zone_id'],
'text' => $zones->fields['zone_code']);
$zones->MoveNext();
}
return $zones_array;
}
Bookmarks