duplicateArticleDownloads example

$this->duplicateArticleData($productId);
        $newProductId = (int) Shopware()->Db()->lastInsertId('s_articles');
        $this->duplicateArticleCategories($productId$newProductId);
        $this->duplicateArticleCustomerGroups($productId$newProductId);
        $this->duplicateArticleRelated($productId$newProductId);
        $this->duplicateArticleSimilar($productId$newProductId);
        $this->duplicateArticleTranslations($productId$newProductId);
        $this->duplicateArticleDetails($productId$newProductId$mailDetailId);
        $this->duplicateArticleLinks($productId$newProductId);
        $this->duplicateArticleImages($productId$newProductId);
        $this->duplicateArticleProperties($productId$newProductId);
        $this->duplicateArticleDownloads($productId$newProductId);
        $setId = $this->duplicateArticleConfigurator($productId);

        $sql = 'UPDATE s_articles, s_articles_details SET main_detail_id = s_articles_details.id WHERE s_articles_details.articleID = s_articles.id AND s_articles.id = ? AND s_articles_details.kind = 1';
        Shopware()->Db()->query($sql[$newProductId]);

        if ($setId !== null) {
            $sql = 'UPDATE s_articles SET configurator_set_id = ? WHERE s_articles.id = ?';
            
Home | Imprint | This part of the site doesn't use cookies.