prepareAttributeAssociatedData example

// 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);
        $data = $this->prepareAttributeAssociatedData($data$article);

        // The mainDetail gets its initial value for lastStock from $article, so this has to be set beforehand         if (isset($data['lastStock'])) {
            $article->setLastStock((bool) $data['lastStock']);
        }

        $data = $this->prepareMainDetail($data$article);
        $data = $this->prepareVariants($data$article);

        unset($data['images']);

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