From 20d860f36106e0233b699bade49641b16cccc7c8 Mon Sep 17 00:00:00 2001 From: webinmd Date: Wed, 17 Jul 2024 01:00:38 +0300 Subject: [PATCH] Fix prepare price on create delivery type --- .../minishop2/processors/mgr/settings/delivery/create.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/minishop2/processors/mgr/settings/delivery/create.class.php b/core/components/minishop2/processors/mgr/settings/delivery/create.class.php index cd6be6ca7..57ab59d97 100644 --- a/core/components/minishop2/processors/mgr/settings/delivery/create.class.php +++ b/core/components/minishop2/processors/mgr/settings/delivery/create.class.php @@ -39,6 +39,7 @@ public function beforeSet() $prices = ['price', 'distance_price', 'weight_price', 'free_delivery_amount']; foreach ($prices as $field) { + $tmp = trim($this->getProperty($field)); $tmp = $this->preparePrice($tmp); $this->setProperty($field, $tmp); }