From 3e70bf99caeab8a04dcd7ae9adcc0ad8a7c56101 Mon Sep 17 00:00:00 2001 From: "John.R" Date: Thu, 28 Nov 2024 15:16:00 +0100 Subject: [PATCH] fix: order cart rule types --- src/Service/ShopContent/OrderCartRulesService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Service/ShopContent/OrderCartRulesService.php b/src/Service/ShopContent/OrderCartRulesService.php index 044bca19..78e6451f 100644 --- a/src/Service/ShopContent/OrderCartRulesService.php +++ b/src/Service/ShopContent/OrderCartRulesService.php @@ -135,6 +135,10 @@ private function castOrderCartRules(&$orderCartRules) $orderCartRule['gift_product_attribute'] = (int) $orderCartRule['gift_product_attribute']; $orderCartRule['highlight'] = (bool) $orderCartRule['highlight']; $orderCartRule['active'] = (bool) $orderCartRule['active']; + + $orderCartRule['value'] = (int) $orderCartRule['value']; + $orderCartRule['value_tax_excl'] = (int) $orderCartRule['value_tax_excl']; + $orderCartRule['deleted'] = (bool) $orderCartRule['deleted']; } } }