From 0cfc7a051bdc353bcc0a01282343e1a2a0b66e10 Mon Sep 17 00:00:00 2001 From: Daniel Kerr Date: Tue, 6 Aug 2024 22:15:23 +0800 Subject: [PATCH] Update reward.php --- upload/extension/opencart/catalog/model/total/reward.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/extension/opencart/catalog/model/total/reward.php b/upload/extension/opencart/catalog/model/total/reward.php index 2d3fe00d759..a1414261c2f 100644 --- a/upload/extension/opencart/catalog/model/total/reward.php +++ b/upload/extension/opencart/catalog/model/total/reward.php @@ -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;