prepareConfigurator example

$article->getTax()
            );
        }

        if (isset($data['purchasePrice']) && \is_string($data['purchasePrice'])) {
            $data['purchasePrice'] = (float) str_replace(',', '.', $data['purchasePrice']);
        }

        $data = $this->prepareAttributeAssociation($data$article$variant);

        if (isset($data['configuratorOptions'])) {
            $data = $this->prepareConfigurator($data$article$variant);
        }
        if (isset($data['images'])) {
            $data = $this->prepareImageAssociation($data$article$variant);
        }
        if (isset($data['esd'])) {
            $data = $this->prepareEsdAssociation($data$variant);
        }

        if (!empty($data['number']) && $data['number'] !== $variant->getNumber()) {
            // Number changed, hence make sure it does not already exist in another variant             $exists = $this->getContainer()
                
Home | Imprint | This part of the site doesn't use cookies.