mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-11 18:54:33 +00:00
Update Cart.php
This commit is contained in:
@@ -51,7 +51,7 @@ class Cart
|
||||
/**
|
||||
* Defines the discount percentage.
|
||||
*/
|
||||
private ?Money $discount = null;
|
||||
private float $discount = 0;
|
||||
|
||||
/**
|
||||
* Defines the tax rate.
|
||||
@@ -173,7 +173,7 @@ class Cart
|
||||
{
|
||||
$item->setInstance($this->currentInstance());
|
||||
|
||||
if (!$keepDiscount) {
|
||||
if (! $keepDiscount) {
|
||||
$item->setDiscountRate($this->discount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user