'taxId' =>
$product->
getTaxId(),
'tagIds' =>
$product->
getTagIds(),
'categoryIds' =>
$product->
getCategoryTree(),
'propertyIds' =>
$product->
getPropertyIds(),
'optionIds' =>
$product->
getOptionIds(),
'options' =>
$product->
getVariation(),
'streamIds' =>
$product->
getStreamIds(),
'parentId' =>
$product->
getParentId(),
'stock' =>
$product->
getStock(),
];
$lineItem->
replacePayload($payload,
['purchasePrices' => true
]);
} private function getPriceDefinition(SalesChannelProductEntity
$product, SalesChannelContext
$context, int
$quantity): QuantityPriceDefinition
{ $this->priceCalculator->
calculate([$product],
$context);
if ($product->
getCalculatedPrices()->
count() === 0
) { return $this->
buildPriceDefinition($product->
getCalculatedPrice(),
$quantity);
} // keep loop reference to $price variable to get last quantity price in case of "null"