Skip to content

woocommerceCreateMainVariantProducts - woocommerce

Version: API v3 - wc 3.5.x or later

← woocommerce Add-On Übersicht

This step creates main variant articles and assigns it the corresponding attributes (eg. size) and terms (eg. S, M, L, XL etc.) After that, the individual variants can be created with the step "woocommerceAddVariantsToProducts"


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
skuSINGLEstock keeping unit. Unique identifier of the product. Nein
nameSINGLEProduct name.Nein
descriptionSINGLEProduct description.Nein
short_descriptionSINGLEProduct short description.Nein
imagesSINGLEList of images URL (comma-separated).Nein
attributesMULTIPLEVALUEAttributes & terms that need to be added to create product variations. Form: attribute_id=term_name1|term_name2;attribute_id=term_name1|term_name2Nein
statusSINGLEProduct status (post status). Options: draft, pending, private and publish. Default is publish.Neinpublish
catalog_visibilitySINGLECatalog visibility. Options: visible, catalog, search and hidden. Default is visible.Neinvisible
categoriesSINGLEList of category IDs (comma-separated). The category ID is an internal indentifier created by woocommerce.Nein
tax_statusSINGLENeintaxable
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
identifierSINGLE
idSINGLE
skuSINGLE
nameSINGLE
slugSINGLE
attributesSINGLE
permalinkSINGLE
date_createdSINGLE
date_created_gmtSINGLE
failedItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
identifierSINGLE
skuSINGLE
nameSINGLE
statusCodeSINGLE
statusMessageSINGLE
responseHeadersSINGLE
responseFilenameSINGLE
errorSINGLE
responseContentSINGLE
errorMessageSINGLE
invalidItemsSPREADSHEET