From 775fe694838e6f971d723d7e14e8b20983fdfcb2 Mon Sep 17 00:00:00 2001 From: Ruslan Aleev Date: Thu, 20 Feb 2025 18:42:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B8=D0=BB=20$propertiesList=20=D0=BF=D0=BE=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=20createOrderShipment/createOrderPayment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если свойства имеют какие-либо привязки - доставка/оплата, то их значения не сохраняются в форме. --- install/components/opensource/order/class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install/components/opensource/order/class.php b/install/components/opensource/order/class.php index ebf26b4..7b07244 100644 --- a/install/components/opensource/order/class.php +++ b/install/components/opensource/order/class.php @@ -374,11 +374,6 @@ public function executeComponent() try { $this->createVirtualOrder($this->arParams['PERSON_TYPE_ID']); - $propertiesList = $this->request['properties'] ?? $this->arParams['DEFAULT_PROPERTIES'] ?? []; - if (!empty($propertiesList)) { - $this->setOrderProperties($propertiesList); - } - $deliveryId = $this->request['delivery_id'] ?? $this->arParams['DEFAULT_DELIVERY_ID'] ?? 0; $this->createOrderShipment($deliveryId); @@ -387,6 +382,11 @@ public function executeComponent() $this->createOrderPayment($paySystemId); } + $propertiesList = $this->request['properties'] ?? $this->arParams['DEFAULT_PROPERTIES'] ?? []; + if (!empty($propertiesList)) { + $this->setOrderProperties($propertiesList); + } + if ($this->arParams['SAVE']) { $validationResult = $this->validateOrder(); @@ -406,4 +406,4 @@ public function executeComponent() $this->includeComponentTemplate(); } -} \ No newline at end of file +}