diff --git a/packages/Webkul/Product/src/Type/AbstractType.php b/packages/Webkul/Product/src/Type/AbstractType.php index b0ea7f307..f1d50a386 100644 --- a/packages/Webkul/Product/src/Type/AbstractType.php +++ b/packages/Webkul/Product/src/Type/AbstractType.php @@ -565,7 +565,7 @@ abstract class AbstractType */ public function getFinalPrice($qty = null) { - return $this->getMinimalPrice($qty); + return round($this->getMinimalPrice($qty), 2); } /** @@ -825,7 +825,7 @@ abstract class AbstractType return trans('shop::app.checkout.cart.quantity.inventory_warning'); } - $price = round($this->getFinalPrice(), 2); + $price = $this->getFinalPrice(); $products = [ [ diff --git a/packages/Webkul/Product/src/Type/Bundle.php b/packages/Webkul/Product/src/Type/Bundle.php index 55bc06cfb..3038530dc 100644 --- a/packages/Webkul/Product/src/Type/Bundle.php +++ b/packages/Webkul/Product/src/Type/Bundle.php @@ -350,7 +350,7 @@ class Bundle extends AbstractType */ public function getFinalPrice($qty = null) { - return 0; + return round(0, 2); } /**