Zum Inhalt springen

woocommerceUpdatePriceAndStock - woocommerce

Version: API v3 - wc 3.5.x or later

← woocommerce Add-On Übersicht


Updates the price and stock of products and variants


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
product_identifierSINGLEinternal identifier of the productJa
variation_identifierSINGLEinternal identifier of the variantNein
stock_quantitySINGLEStock quantity.Nein
regular_priceSINGLEProduct regular price.Nein
sale_priceSINGLEProduct sale price.Nein
date_on_sale_fromSINGLEStart date of sale price in the site timezone in the following format yyyy-MM-ddTHH:mm:ss (e.g. 2019-01-24T00:00:00).Nein
date_on_sale_toSINGLEEnd date of sale price in the site timezone in the following format yyyy-MM-ddTHH:mm:ss (e.g. 2019-01-24T00:00:00).Nein
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
updatedItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
product_identifierSINGLE
variation_identifierSINGLE
stock_quantitySINGLE
regular_priceSINGLE
sale_priceSINGLE
on_sale_fromSINGLE
date_on_sale_toSINGLE
statusCodeSINGLE
statusMessageSINGLE
invalidItemsSPREADSHEET
failedItemsSPREADSHEET
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
methodSINGLE
hostSINGLE
requestBodySINGLE
statusCodeSINGLE
statusMessageSINGLE
responseHeadersSINGLE
responseFilenameSINGLE
errorSINGLE
source_product_identifierSINGLE
source_variation_identifierSINGLE
source_stock_quantitySINGLE
source_regular_priceSINGLE
source_sale_priceSINGLE
source_date_on_sale_fromSINGLE
source_date_on_sale_toSINGLE
responseContentSINGLE
errorMessageSINGLE