prepareConfiguratorSet example

protected function prepareAssociatedData($data, ProductModel $article)
    {
        $data = $this->prepareArticleAssociatedData($data$article);
        $data = $this->prepareCategoryAssociatedData($data$article);
        $data = $this->prepareSeoCategoryAssociatedData($data$article);

        $data = $this->prepareRelatedAssociatedData($data$article);
        $data = $this->prepareSimilarAssociatedData($data$article);
        $data = $this->prepareAvoidCustomerGroups($data$article);
        $data = $this->preparePropertyValuesData($data$article);
        $data = $this->prepareDownloadsAssociatedData($data$article);
        $data = $this->prepareConfiguratorSet($data$article);

        // Need to set the tax data directly for following price calculations which use the tax object of the article         if (isset($data['tax'])) {
            $article->setTax($data['tax']);
        }

        if (isset($data['configuratorSet'])) {
            $article->setConfiguratorSet($data['configuratorSet']);
        }

        $data = $this->prepareImageAssociatedData($data$article);
        
Home | Imprint | This part of the site doesn't use cookies.