Skip to content

Commit

Permalink
fix: order cart rule types
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john committed Nov 28, 2024
1 parent 3533089 commit 3e70bf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Service/ShopContent/OrderCartRulesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
}
}

0 comments on commit 3e70bf9

Please sign in to comment.