commit
f9f1f9d82e
|
|
@ -561,13 +561,13 @@ abstract class Discount
|
|||
break;
|
||||
}
|
||||
} else if ($test_condition == '{}') {
|
||||
if (! str_contains($actual_value, $test_value)) {
|
||||
if (str_contains($actual_value, $test_value)) {
|
||||
$result = false;
|
||||
|
||||
break;
|
||||
}
|
||||
} else if ($test_condition == '!{}') {
|
||||
if (str_contains($actual_value, $test_value)) {
|
||||
if (! str_contains($actual_value, $test_value)) {
|
||||
$result = false;
|
||||
|
||||
break;
|
||||
|
|
@ -689,7 +689,7 @@ abstract class Discount
|
|||
break;
|
||||
}
|
||||
} else if ($test_condition == '!{}') {
|
||||
if (str_contains($actual_value, $test_value)) {
|
||||
if (! str_contains($actual_value, $test_value)) {
|
||||
$result = true;
|
||||
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class NonCouponAbleRule extends Discount
|
|||
// if the validation fails then the cart rule gets deleted from cart rule cart
|
||||
$alreadyAppliedCartRuleCart->first()->delete();
|
||||
|
||||
$this->resetShipping();
|
||||
$this->resetShipping($cart);
|
||||
|
||||
// all discount is cleared fro mthe cart and cart items table
|
||||
$this->clearDiscount();
|
||||
|
|
|
|||
Loading…
Reference in New Issue