diff --git a/packages/core/src/Managers/DiscountManager.php b/packages/core/src/Managers/DiscountManager.php index c562c98dd4..acc51d262c 100644 --- a/packages/core/src/Managers/DiscountManager.php +++ b/packages/core/src/Managers/DiscountManager.php @@ -122,6 +122,10 @@ public function getDiscounts(?Cart $cart = null): Collection $this->channel($defaultChannel); } + if ($cart && $customerGroups = $cart->customer?->customerGroups) { + $this->customerGroup($customerGroups); + } + if ($this->customerGroups->isEmpty() && $defaultGroup = CustomerGroup::getDefault()) { $this->customerGroup($defaultGroup); }