diff --git a/Helper/Cart/CartManager.php b/Helper/Cart/CartManager.php index 8933a7c..450b134 100644 --- a/Helper/Cart/CartManager.php +++ b/Helper/Cart/CartManager.php @@ -182,17 +182,19 @@ public function getTotal( ); } - if ($withCartDiscount) { - $discount = $this->getCartDiscount(); - $total -= $this->priceHelper->getDiscountAmount($total, $discount); - } - if ($withShipment && null !== $shipment = $cart->getShipment()) { $total += $shipment->getPrice(); } + $total = round($total, 2); + + if ($withCartDiscount) { + $discount = $this->getCartDiscount(); + $total -= round($this->priceHelper->getDiscountAmount($total, $discount), 2); + } + if (!empty($withTaxes)) { - $total += ($total * $withTaxes / 100); + $total += round(($total * $withTaxes / 100), 2); } return $total;