From cd2a1631746e4957cc4564a0f4283d2f88463c61 Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Fri, 5 Jul 2024 21:34:01 +0200 Subject: [PATCH 1/2] Fix shopware importer for shopware 6.6 --- www/pages/shopimporter_shopware6.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/pages/shopimporter_shopware6.php b/www/pages/shopimporter_shopware6.php index 21b1216e..4016486b 100644 --- a/www/pages/shopimporter_shopware6.php +++ b/www/pages/shopimporter_shopware6.php @@ -1430,14 +1430,16 @@ class Shopimporter_Shopware6 extends ShopimporterBase continue; } - $mediaData = $this->shopwareRequest('POST', 'media?_response=true', []); + $mediaData = $this->shopwareRequest('POST', 'media?_response=true', [ + 'title' => $imageTitle, + 'alt' => $imageAltText + ]); if(empty($mediaData['data']['id'])){ $this->Shopware6Log('Error when creating media for sku: ' . $internalArticleData['nummer'], ['mediaData' => $mediaData, 'title' => $imageTitle, 'text' => $imageAltText]); continue; } $mediaId = $mediaData['data']['id']; - $this->setMediaTitleAndAltText($mediaId, $imageTitle, $imageAltText); $mediaAssociationData = [ [ From f5ac09944e4d6647bc159a2d91d2addc514c5324 Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Tue, 9 Jul 2024 11:51:50 +0200 Subject: [PATCH 2/2] Shopware 6: Export translations for variants --- www/pages/shopimporter_shopware6.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/pages/shopimporter_shopware6.php b/www/pages/shopimporter_shopware6.php index 4016486b..73cfcd52 100644 --- a/www/pages/shopimporter_shopware6.php +++ b/www/pages/shopimporter_shopware6.php @@ -2901,6 +2901,9 @@ class Shopimporter_Shopware6 extends ShopimporterBase } $this->addCoverImage($variantImageData, $variantProductId); + if($article['texteuebertragen']) { + $this->exportTranslationsForArticle($variant, $variantProductId); + } } $existingConfigurations = $this->shopwareRequest(