getAvailableConfigurations example



    /** * {@inheritdoc} */
    public function getProductConfigurator(
        BaseProduct $product,
        ShopContextInterface $context,
        array $selection
    ) {
        $configurator = $this->configuratorGateway->get($product$context);
        $availableProductOptions = $this->configuratorGateway->getAvailableConfigurations($product);

        $media = [];
        if (((int) $configurator->getType()) === self::CONFIGURATOR_TYPE_PICTURE) {
            $media = $this->configuratorGateway->getConfiguratorMedia(
                $product,
                $context
            );
        }

        $onlyOneGroup = \count($configurator->getGroups()) === self::CONFIGURATOR_TYPE_SELECTION;

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