Skip to content

woocommerceAddVariantsToProducts - woocommerce

Version: API v3 - wc 3.5.x or later

← woocommerce Add-On Übersicht

With this step, individual variants can be created, for the main variant products. The main variant products can be created using the "woocommerceCreateMainVariantProducts" Step in advance. Only the attributes and terms, assigned to the corresponding main variant product, can be used to create the variations. For example: - Variant 1: attribute: “size” term: “S” - Variant 2: attribute: “size” term: “M” - Variant 3: attribute: “size” term: “L” etc.


Inputs

Das sind die Optionen, mit denen man den Step konfigurieren kann.

NameDatentypBeschreibungPflichtfeldWerte
inputSPREADSHEETSpreadsheet of items to be proceededNein
mappingdefinitionSTRINGThe mapping definition JSON StringNein
Folgende Felder sind zu konfigurieren:

FeldDatentypBeschreibungPflichtfeldStandardwert
idSINGLENein
skuSINGLENein
gtinSINGLENein
mpnSINGLENein
regular_priceSINGLENein
sale_priceSINGLENein
date_on_sale_fromSINGLENein
date_on_sale_toSINGLENein
attributes_idSINGLENein
attribute_nameSINGLENein
attribute_optionSINGLENein
accountACCOUNTaccount dataNein
limitSTRINGLimit the number or rows used from the input SPREADSHEET (default value is 5). Use low values for testing.Nein

Outputs

Das sind die Ergebnisse des Steps, die von nachfolgenden Steps, nach der Ausführung verwendet werden können.

NameDatentypBeschreibungWerte
createdProductsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
idSINGLE
variant_idSINGLE
parent_variant_idSINGLE
source_skuSINGLE
permalinkSINGLE
date_createdSINGLE
date_created_gmtSINGLE
failedItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
idSINGLE
parent_variant_idSINGLE
source_skuSINGLE
statusCodeSINGLE
statusMessageSINGLE
responseHeadersSINGLE
responseFilenameSINGLE
errorSINGLE
responseContentSINGLE
errorMessageSINGLE
invalidItemsSPREADSHEET