¨4.0.1¨
This commit is contained in:
@@ -25,6 +25,7 @@ class ExcludedCategories
|
||||
return $next($coupon);
|
||||
}
|
||||
|
||||
|
||||
private function inExcludedCategories($coupon, $cartItem)
|
||||
{
|
||||
return $coupon->excludeCategories->intersect($cartItem->product->categories)->isNotEmpty();
|
||||
|
||||
@@ -25,6 +25,7 @@ class ExcludedProducts
|
||||
return $next($coupon);
|
||||
}
|
||||
|
||||
|
||||
private function inExcludedProducts($coupon, $cartItem)
|
||||
{
|
||||
return $coupon->excludeProducts->contains($cartItem->product);
|
||||
|
||||
Reference in New Issue
Block a user