Rounded Price Added To Final Price Method

This commit is contained in:
devansh bawari 2021-08-09 17:36:49 +05:30
parent dee974a330
commit ddeaf597ec
2 changed files with 3 additions and 3 deletions

View File

@ -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 = [
[

View File

@ -350,7 +350,7 @@ class Bundle extends AbstractType
*/
public function getFinalPrice($qty = null)
{
return 0;
return round(0, 2);
}
/**