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

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
@@ -4,6 +4,9 @@ class ControllerInformationContact extends Controller {
public function index() {
$this->load->language('information/contact');
$this->load->model('localisation/zone');
$contacts = $this->model_localisation_zone->getContacts();
$this->document->setTitle($this->language->get('heading_title'));
@@ -18,7 +21,7 @@ class ControllerInformationContact extends Controller {
$mail->smtp_port = $this->config->get('config_mail_smtp_port');
$mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');
$mail->setTo($this->config->get('config_email'));
$mail->setTo($contacts['email']);
$mail->setFrom($this->request->post['email']);
$mail->setReplyTo($this->request->post['email']);
$mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES, 'UTF-8'));
@@ -89,13 +92,13 @@ class ControllerInformationContact extends Controller {
}
$data['store'] = $this->config->get('config_name');
$data['address'] = nl2br($this->config->get('config_address'));
$data['geocode'] = $this->config->get('config_geocode');
$data['address'] = nl2br($contacts['address']);
$data['geocode'] = $contacts['geocode'];
$data['geocode_hl'] = $this->config->get('config_language');
$data['telephone'] = $this->config->get('config_telephone');
$data['fax'] = $this->config->get('config_fax');
$data['open'] = nl2br($this->config->get('config_open'));
$data['comment'] = $this->config->get('config_comment');
$data['telephone'] = $contacts['telephone'];
$data['fax'] = $contacts['fax'];
$data['open'] = nl2br($contacts['open']);
$data['comment'] = $contacts['comment'];
$data['locations'] = array();