mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Merge pull request #146 from exciler/shopware6.6
Fix shopware importer for shopware 6.6
This commit is contained in:
commit
697f10cc68
@ -1432,14 +1432,16 @@ class Shopimporter_Shopware6 extends ShopimporterBase
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$mediaData = $this->shopwareRequest('POST', 'media?_response=true', []);
|
$mediaData = $this->shopwareRequest('POST', 'media?_response=true', [
|
||||||
|
'title' => $imageTitle,
|
||||||
|
'alt' => $imageAltText
|
||||||
|
]);
|
||||||
if(empty($mediaData['data']['id'])){
|
if(empty($mediaData['data']['id'])){
|
||||||
$this->Shopware6Log('Error when creating media for sku: ' . $internalArticleData['nummer'],
|
$this->Shopware6Log('Error when creating media for sku: ' . $internalArticleData['nummer'],
|
||||||
['mediaData' => $mediaData, 'title' => $imageTitle, 'text' => $imageAltText]);
|
['mediaData' => $mediaData, 'title' => $imageTitle, 'text' => $imageAltText]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$mediaId = $mediaData['data']['id'];
|
$mediaId = $mediaData['data']['id'];
|
||||||
$this->setMediaTitleAndAltText($mediaId, $imageTitle, $imageAltText);
|
|
||||||
|
|
||||||
$mediaAssociationData = [
|
$mediaAssociationData = [
|
||||||
[
|
[
|
||||||
@ -2901,6 +2903,9 @@ class Shopimporter_Shopware6 extends ShopimporterBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->addCoverImage($variantImageData, $variantProductId);
|
$this->addCoverImage($variantImageData, $variantProductId);
|
||||||
|
if($article['texteuebertragen']) {
|
||||||
|
$this->exportTranslationsForArticle($variant, $variantProductId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$existingConfigurations = $this->shopwareRequest(
|
$existingConfigurations = $this->shopwareRequest(
|
||||||
|
Loading…
Reference in New Issue
Block a user