Skip to content

Commit

Permalink
MOL-1235: Fix voucher recognition in bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Oct 23, 2023
1 parent 76c8123 commit 615c134
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Cart/Voucher/VoucherCartCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function collect(CartDataCollection $data, Cart $original, SalesChannelCo
$cartHasVoucher = false;

if ($salesChannelHasVoucherMethod) {
foreach ($original->getLineItems() as $item) {
foreach ($original->getLineItems()->getFlat() as $item) {
# get the final inherited voucher type of the product
# this might even be from the parent
$voucherType = $this->voucherService->getFinalVoucherType($item, $context);
Expand Down
1 change: 1 addition & 0 deletions src/Service/MollieApi/OrderDataExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@ public function extractLineItems(OrderEntity $orderEntity, Context $context): Or

return $lineItems;
}

}

0 comments on commit 615c134

Please sign in to comment.