buildCurrentOptions example



        $groups = $this->loadSettings($product$context);

        $groups = $this->sortSettings($groups$product);

        $combinations = $this->combinationLoader->loadCombinations(
            $product->getParentId(),
            $context,
        );

        $current = $this->buildCurrentOptions($product$groups);

        foreach ($groups as $group) {
            $options = $group->getOptions();
            if ($options === null) {
                continue;
            }

            foreach ($options as $option) {
                $combinable = $this->isCombinable($option$current$combinations);
                if ($combinable === null) {
                    $options->remove($option->getId());

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