Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SalesRule/Action/AbstractGiftAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected function addAppliedRuleId(DataObject $stateObject, Rule $rule): void
protected function getGiftProduct(string $sku): ProductInterface
{
/** @var Product $product */
$product = $this->productRepository->get($sku);
$product = $this->productRepository->get($sku, false, null, true);
/**
* Makes it unique, to avoid merging
* @see \Magento\Quote\Model\Quote\Item::representProduct
Expand All @@ -232,4 +232,4 @@ protected function getDiscountData(AbstractItem $item): Discount\Data
'baseOriginalAmount' => $item->getBaseOriginalDiscountAmount()
]);
}
}
}