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.

Name Datentyp Beschreibung Pflichtfeld Werte
input SPREADSHEET Spreadsheet of items to be proceeded Nein
mappingdefinition STRING The mapping definition JSON String Nein
Folgende Felder sind zu konfigurieren:

Feld Datentyp Beschreibung Pflichtfeld Standardwert
id SINGLE Nein
sku SINGLE Nein
gtin SINGLE Nein
mpn SINGLE Nein
regular_price SINGLE Nein
sale_price SINGLE Nein
date_on_sale_from SINGLE Nein
date_on_sale_to SINGLE Nein
attributes_id SINGLE Nein
attribute_name SINGLE Nein
attribute_option SINGLE Nein
account ACCOUNT account data Nein
limit STRING Limit 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.

Name Datentyp Beschreibung Werte
createdProducts SPREADSHEET
Folgende Felder sind im Output enthalten:

Feld Datentyp Beschreibung Standardwert
id SINGLE
variant_id SINGLE
parent_variant_id SINGLE
source_sku SINGLE
permalink SINGLE
date_created SINGLE
date_created_gmt SINGLE
failedItems SPREADSHEET
Folgende Felder sind im Output enthalten:

Feld Datentyp Beschreibung Standardwert
id SINGLE
parent_variant_id SINGLE
source_sku SINGLE
statusCode SINGLE
statusMessage SINGLE
responseHeaders SINGLE
responseFilename SINGLE
error SINGLE
responseContent SINGLE
errorMessage SINGLE
invalidItems SPREADSHEET