Hallo zusammen,
ich versuche, Artikel über die Rest-API zu erstellen und die Varianten einzelnen Bildern zuzuordnen. Bei den Artikeln handelt es sich im T-Shirts, diese sollen einer jeweiligen Farbe zugeordnet werden. Input ist bspw. wie folgt:
[name] => Valueweight Tee (IEPF16)
[description] => Beschreibung des T-Shirts
[tax] => Array
(
[tax] => 19
[name] => MWST
)
[active] => 1
[supplier] => Shirtigo Cockpit
[mainDetail] => Array
(
[number] => 46.92.2
[prices] => Array
(
[0] => Array
(
[customerGroupKey] => EK
[price] => 70.90
)
)
)
[images] => Array
(
[0] => Array
(
[link] => https://cdn.shopify.com/s/files/1/0275/6675/products/shirt_red_2048x2048.jpg
[description] => Heather Ash
[options] => Array
(
[0] => Array
(
[0] => Array
(
[name] => Heather Ash
)
)
)
)
[1] => Array
(
[link] => https://cdn.shopify.com/s/files/1/0275/6675/products/shirt_red_2048x2048.jpg
[description] => Deep Navy
[options] => Array
(
[0] => Array
(
[0] => Array
(
[name] => Deep Navy
)
)
)
)
)
[configuratorSet] => Array
(
[groups] => Array
(
[0] => Array
(
[name] => Farbe
[options] => Array
(
[0] => Array
(
[name] => Heather Ash
)
[1] => Array
(
[name] => Deep Navy
)
)
)
[1] => Array
(
[name] => Größe
[options] => Array
(
[0] => Array
(
[name] => S
)
[1] => Array
(
[name] => M
)
)
)
)
)
[variants] => Array
(
[0] => Array
(
[isMain] => 1
[active] => 1
[configuratorOptions] => Array
(
[0] => Array
(
[group] => Farbe
[option] => Heather Ash
)
[1] => Array
(
[group] => Größe
[option] => S
)
)
[prices] => Array
(
[0] => Array
(
[customerGroupKey] => EK
[price] => 70.90
)
)
[attribute] => Array
(
[attr10] => Shirtigo Cockpit
)
[number] => 46.92.2
[__options_images] => Array
(
[replace] => 1
)
)
[1] => Array
(
[isMain] =>
[active] => 1
[configuratorOptions] => Array
(
[0] => Array
(
[group] => Farbe
[option] => Heather Ash
)
[1] => Array
(
[group] => Größe
[option] => M
)
)
[prices] => Array
(
[0] => Array
(
[customerGroupKey] => EK
[price] => 70.90
)
)
[attribute] => Array
(
[attr10] => Shirtigo Cockpit
)
[number] => 46.92.3
[__options_images] => Array
(
[replace] => 1
)
)
[5] => Array
(
[isMain] =>
[active] => 1
[configuratorOptions] => Array
(
[0] => Array
(
[group] => Farbe
[option] => Deep Navy
)
[1] => Array
(
[group] => Größe
[option] => S
)
)
[prices] => Array
(
[0] => Array
(
[customerGroupKey] => EK
[price] => 70.90
)
)
[attribute] => Array
(
[attr10] => Shirtigo Cockpit
)
[number] => 46.95.2
[__options_images] => Array
(
[replace] => 1
)
)
[6] => Array
(
[isMain] =>
[active] => 1
[configuratorOptions] => Array
(
[0] => Array
(
[group] => Farbe
[option] => Deep Navy
)
[1] => Array
(
[group] => Größe
[option] => M
)
)
[prices] => Array
(
[0] => Array
(
[customerGroupKey] => EK
[price] => 70.90
)
)
[attribute] => Array
(
[attr10] => Shirtigo Cockpit
)
[number] => 46.95.3
[__options_images] => Array
(
[replace] => 1
)
)
)
)
Die Varianten werden angelegt, und die Bilder auch mit den Farben verknüpft, jedoch ist die Verknüpfung nicht „aktiviert“. Man müsste hier bei jedem Bild den Haken manuell setzen:
Ein Neu-Generieren der Thumbnails per API-Aufruf hilft leider nicht. Kann hier jemand helfen?
Danke und viele Grüße!
Thomas