Skip to content

Commit

Permalink
Update reward.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Aug 6, 2024
1 parent df9f691 commit 0cfc7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/extension/opencart/catalog/model/total/reward.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getTotal(array &$totals, array &$taxes, float &$total): void {

$points = $this->customer->getRewardPoints();

if ($this->session->data['reward'] <= $points) {
if ($this->session->data['reward'] <= $points && $this->session->data['reward'] > 0) {
$discount_total = 0;

$points_total = 0;
Expand Down

0 comments on commit 0cfc7a0

Please sign in to comment.