$lineItem->
replacePayload([ 'features' =>
$this->
buildFeatures($data,
$lineItem,
$product),
]);
} } private function buildFeatures(CartDataCollection
$data, LineItem
$lineItem, SalesChannelProductEntity
$product): array
{ $features =
[];
$featureSet =
$product->
getFeatureSet();
if ($featureSet === null
) { return $features;
} $sorted =
$featureSet->
getFeatures();
if (empty($sorted)) { return $features;
}