Skip to content

Commit cc441ad

Browse files
[giftDigitaProduct] - fix for gift digital product
1 parent 36f96e5 commit cc441ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CoreShop/Component/Core/Cart/Rule/Action/GiftProductActionProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public function applyRule(OrderInterface $cart, array $configuration, PriceRuleI
7474
$item = $this->cartItemFactory->createWithCart($cart, $product);
7575
$item->setQuantity(1);
7676
$item->setIsGiftItem(true);
77+
$item->setDigitalProduct($product->getDigitalProduct());
7778

7879
if (
7980
$product instanceof ProductInterface &&

0 commit comments

Comments
 (0)