I need the States name to display on the ZC admin orders instead of the entire States name. Currently it is display like this.
JOHN DOE
123 ANY ST
ANYTOWN, Florida 34238
United States
I need it to display like this.
JOHN DOE
123 ANY ST
ANYTOWN, FL 34238
United States
I have found the file public_html/zad/includes/functions/general.php with "Description : Function to retrieve the state/province code (as in FL for Florida etc)" but I don't know how to make it happen here.
////////////////////////////////////////////////////////////////////////////////////////////////
//
// Function : zen_get_zone_code
//
// Arguments : country_id country code string
// zone_id state/province zone_id
// default_zone default string if zone==0
//
// Return : state_prov_code s tate/province code
//
// Description : Function to retrieve the state/province code (as in FL for Florida etc)
//
////////////////////////////////////////////////////////////////////////////////////////////////
function zen_get_zone_code($country_id, $zone_id, $default_zone) {
global $db;
$zone_query = "select zone_code
from " . TABLE_ZONES . "
where zone_country_id = '" . (int)$country_id . "'
and zone_id = '" . (int)$zone_id . "'";
$zone = $db->Execute($zone_query);
if ($zone->RecordCount() > 0) {
return $zone->fields['zone_code'];
} else {
return $default_zone;
}
}


Reply With Quote
