From 3673f360b7bad0036cbd3c13575d407d0d595344 Mon Sep 17 00:00:00 2001 From: Joel Male Date: Tue, 20 Aug 2024 16:57:11 +1000 Subject: [PATCH] feat: fix tests --- src/CartCondition.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/CartCondition.php b/src/CartCondition.php index 344240d..a511cc6 100644 --- a/src/CartCondition.php +++ b/src/CartCondition.php @@ -145,12 +145,6 @@ public function getCalculatedValue($totalOrSubTotalOrPrice = null): int|float */ protected function apply($totalOrSubTotalOrPrice, $conditionValue) { - if ($totalOrSubTotalOrPrice <= 0) { - $this->parsedRawValue = 0; - - return; - } - // if value has a percentage sign on it, we will get first // its percentage then we will evaluate again if the value // has a minus or plus sign so we can decide what to do with the