Rounded Price Added To Final Price Method
This commit is contained in:
parent
dee974a330
commit
ddeaf597ec
|
|
@ -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 = [
|
||||
[
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ class Bundle extends AbstractType
|
|||
*/
|
||||
public function getFinalPrice($qty = null)
|
||||
{
|
||||
return 0;
|
||||
return round(0, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue