Skip to content

Commit

Permalink
Merge branch '3.0' of https://github.com/coreshop/CoreShop into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed May 22, 2023
2 parents 6f67402 + 9b69077 commit 327f67f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CoreShop/Component/Order/Modifier/VoucherModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function decrement(OrderInterface $order): void
continue;
}

if (!$item->getVoucherCode()) {
continue;
}

$voucherCode = $this->voucherCodeRepository->findByCode($item->getVoucherCode());
if ($voucherCode instanceof CartPriceRuleVoucherCodeInterface) {
if ($voucherCode->getUses() !== 0) {
Expand Down

0 comments on commit 327f67f

Please sign in to comment.