prepareVariants example



        $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']);

        return $data;
    }

    /** * @param array $data * * @throws CustomValidationException * * @return array */
Home | Imprint | This part of the site doesn't use cookies.