Автозамены регионов

This commit is contained in:
Konstantin
2026-05-30 17:43:37 +03:00
parent df8cf22112
commit 6c8a012702
16 changed files with 317 additions and 18 deletions
@@ -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) {