Skip to content

Commit

Permalink
Fix #296 (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoderwald authored Jul 29, 2021
1 parent 3b6dadb commit 6d6b116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/Coupons/Fixed.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ public function discount($price)
return $price;
}

return LaraCart::formatMoney(
$discount,
null,
null,
false
);
return $discount;
}

return 0;
Expand Down
7 changes: 1 addition & 6 deletions src/Coupons/Percentage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ public function __construct($code, $value, $options = [])
public function discount($price)
{
if ($this->canApply()) {
return LaraCart::formatMoney(
$price * $this->value,
null,
null,
false
);
return ($price * $this->value);
}

return 0;
Expand Down

0 comments on commit 6d6b116

Please sign in to comment.