prepareSeoCategoryAssociatedData example



    /** * @param array<string, mixed> $data * * @return array<string, mixed> */
    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']);
        }
// Format the posted extJs product main prices data         $data = $this->prepareMainPricesAssociatedData($data$article);

        $data = $this->prepareAvoidCustomerGroups($data);

        // Format the posted extJs product configurator association.         $data = $this->prepareConfiguratorAssociatedData($data$article);

        // Format the posted extJs product categories associations         $data = $this->prepareCategoryAssociatedData($data);

        $data = $this->prepareSeoCategoryAssociatedData($data$article);

        // Format the posted extJs related product association         $data = $this->prepareRelatedAssociatedData($data$article);

        // Format the posted extJs related product streams association         $data = $this->prepareRelatedProductStreamsData($data);

        // Format the posted extJs similar product association         $data = $this->prepareSimilarAssociatedData($data$article);

        // Format the posted extJs product image data
Home | Imprint | This part of the site doesn't use cookies.