[GELÖST] mehrere Eigenschaften / PropertyValues übergeben

@sacrofano schrieb:

Laut Doku gibt man die OptionID auf der gleichen Ebene, wie die ID an:

https://developers.shopware.com/developers-guide/rest-api/examples/article/

„propertyValues“:[
{
„id“:24,
„optionId“:2
},
{
„id“:28,
„optionId“:4
},

@sacrofano

Vielen Dank für deine schnelle Rückmeldung! Es funktioniert nun einwandfrei … :slight_smile: schönes Wochenende.

 

Für die Nachwelt, Lösung an unserem Beispiel:

[...]

Filterset // $articleData['filterGroupId'] = 1;
Größe // $articleData['propertyValues'][1]['optionId'] = 26;
XL // $articleData['propertyValues'][1]['id'] = 301;
Farbe // $articleData['propertyValues'][2]['optionId'] = 4;
Grün // $articleData['propertyValues'][2]['id'] = 16;

[...]