Skip to content

Commit

Permalink
MOL-1235: Fix voucher recognition in bundles (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer authored Oct 24, 2023
1 parent 2016ee4 commit 13cdab6
Showing 1 changed file with 1 addition 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

0 comments on commit 13cdab6

Please sign in to comment.