getFullConfiguration example



        if ($product->getConfiguration()) {
            $product->setVisibility(
                $this->listingVariationLoader->getVisibility($product$variantFacet)
            );

            $product->setFilterConfiguration(
                $this->buildFilterConfiguration(
                    $variantFacet->getExpandGroupIds(),
                    $product->getConfiguration(),
                    $product->getFullConfiguration()
                )
            );

            if (\array_key_exists($product->getNumber()$listingPrices)) {
                $product->setListingVariationPrices(
                    $listingPrices[$product->getNumber()]
                );
            }

            if (\array_key_exists($number$availability)) {
                $product->setAvailability($availability[$number]);
            }
return $combinationAvailability;
    }

    /** * Builds the visibility for the variant listings * * @return array */
    public function getVisibility(Product $product, VariantFacet $facet)
    {
        $groups = $product->getFullConfiguration();

        $splitting = $this->createSplitting($groups$product->getAvailableCombinations()$facet);

        $configuration = $product->getConfiguration();

        return $this->buildListingVisibility($splitting$configuration);
    }

    /** * Combines all array elements with all array elements * * @return array */
Home | Imprint | This part of the site doesn't use cookies.