prepareAvoidCustomerGroups example

protected function prepareAssociatedData($data$article)
    {
        // Format the posted extJs product data         $data = $this->prepareArticleAssociatedData($data);

        // Format the posted extJs product main detail data         $data = $this->prepareMainDetailAssociatedData($data);

        // 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);

        

    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']);
        }
Home | Imprint | This part of the site doesn't use cookies.