diff --git a/classes/Cart.php b/classes/Cart.php index 977c320a3..e070e8c6a 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -1293,9 +1293,9 @@ class CartCore extends ObjectModel { $result = $this->getCartRules(); foreach ($result as $row) - $order_total_discount += Tools::ps_round($row['obj']->getContextualValue($with_taxes)); + $order_total_discount += Tools::ps_round($row['obj']->getContextualValue($with_taxes), 2); - $order_total_discount = min(Tools::ps_round($order_total_discount), $wrapping_fees + $order_total_products + $shipping_fees); + $order_total_discount = min(Tools::ps_round($order_total_discount, 2), $wrapping_fees + $order_total_products + $shipping_fees); $order_total -= $order_total_discount; }