From abd5ac332b7a04ef3608fb133e4a98da20d8167d Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 24 Jun 2025 03:05:07 +0300 Subject: [PATCH] =?UTF-8?q?Maks=20|=20wip:=20=D1=83=D0=B1=D0=B5=D0=B4?= =?UTF-8?q?=D0=B8=D0=BB=D1=81=D1=8F=20=D0=B2=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B5=20=D0=BA=D0=B0=D0=BB=D1=8C=D0=BA=D1=83=D0=BB=D1=8F?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=20=D0=B8=20=D1=87=D1=83=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BA=D0=BE=D0=BF=D0=B0=D0=BB=D1=81=D1=8F=20=D0=B2?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/components/era/calculator/class.php | 1 + .../calculator/templates/.default/ajax.php | 2 + .../templates/.default/template.php | 138 +++++++++--------- 3 files changed, 75 insertions(+), 66 deletions(-) diff --git a/local/components/era/calculator/class.php b/local/components/era/calculator/class.php index d1ec624..d205a7c 100644 --- a/local/components/era/calculator/class.php +++ b/local/components/era/calculator/class.php @@ -57,6 +57,7 @@ class EraCalculatorComponent extends CBitrixComponent $this->arResult['GROUND_WATER'] = $this->getPropertyEnumValues(57); if ($this->request->isPost() && ($this->request->getPost('calculate') === 'Y' || $this->isAjax)) { + $this->processCalculation(); } diff --git a/local/components/era/calculator/templates/.default/ajax.php b/local/components/era/calculator/templates/.default/ajax.php index f7abe97..586cb27 100644 --- a/local/components/era/calculator/templates/.default/ajax.php +++ b/local/components/era/calculator/templates/.default/ajax.php @@ -43,6 +43,8 @@ if (!empty($arResult['ITEMS'])): + +

Попробуйте поменять настройки калькулятора, либо же оставьте заявку в следующей форме:

Нужен септик для бизнеса?

Наш менеджер свяжется с вами в ближайшее время
diff --git a/local/components/era/calculator/templates/.default/template.php b/local/components/era/calculator/templates/.default/template.php index 5ecdbf0..6eb4a0d 100644 --- a/local/components/era/calculator/templates/.default/template.php +++ b/local/components/era/calculator/templates/.default/template.php @@ -207,81 +207,82 @@ + +
+ + + + + +