getFeatureSet example



            $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;
        }

        
Home | Imprint | This part of the site doesn't use cookies.