Автозамены регионов
This commit is contained in:
@@ -109,6 +109,13 @@ foreach(['name','email','telephone','address','open', 'comment'] as $item){
|
||||
$zones = $this->model_localisation_zone->getZonesByCountryId($country_id);
|
||||
|
||||
$current_zone_id = isset($this->session->data['city_id']) ? (int)$this->session->data['city_id'] : (int)$this->config->get('config_zone_id');
|
||||
$contacts = $this->model_localisation_zone->getContacts($current_zone_id);
|
||||
|
||||
foreach ($contacts as $field => $value) {
|
||||
$data['config_' . $field] = $value;
|
||||
}
|
||||
|
||||
$data['telephone'] = $contacts['telephone'];
|
||||
|
||||
$data['current_city_name'] = '';
|
||||
foreach ($zones as $zone) {
|
||||
|
||||
Reference in New Issue
Block a user