Skip to content
Permalink
Browse files

Fix coupon condition matching

  • Loading branch information
zawaze authored and lopes-vincent committed Feb 12, 2020
1 parent 0f33623 commit 14b5ddc500a6ce252cb2f190845874cdf0316d02
Showing with 2 additions and 5 deletions.
  1. +2 −5 core/lib/Thelia/Condition/Implementation/CartContainsCategories.php
@@ -99,17 +99,14 @@ public function isMatching()

/** @var Category $category */
foreach ($categories as $category) {
if (! $this->conditionValidator->variableOpComparison(
if ($this->conditionValidator->variableOpComparison(
$category->getId(),
$this->operators[self::CATEGORIES_LIST],
$this->values[self::CATEGORIES_LIST]
)) {
// cart item doesn't match go to next cart item
continue 2;
return true;
}
}
// cart item match
return true;
}
return false;
}

0 comments on commit 14b5ddc

Please sign in to comment.
You can’t perform that action at this time.