Zum Inhalt springen

MagentoUpdateInventory - Magento

← Magento Add-On Übersicht

Mit diesem Step können Sie den Preis und Lagerbestand von Artikeln updaten.
Benötigt wird hierfür ein Spreadsheet mit den Spalten:

  • product id - eindeutige Produkt ID von Magento
  • price - eine Spalte mit den Produktpreisen

optionale Spalten:

  • qty - Artikelbestand

  • min_stock - minimaler Artikelbestand

  • notify_qty - Meldebestand des Artikels

  • in_stock - Artikelverfügbarkeit

Step Konfiguration:

Input
Beschreibung
input Benötigt wird ein Spreadsheet welches mindestens die Spalten mit ItemIDs und Preisen beinhaltet.
mappingdefinition Mit Klick auf "Configure" können Sie dem gerade verlinkten Spreadsheet die vorgegebenen Spalten zuordnen.
apiUser

Benutzername des API Nutzers, der in Magento (siehe Nutzer und Rollen anlegen)

Beispiel:API_nutzer1

apiKey

entspricht dem Passwort dieses Benutzers.

Beispiel: API_Pa$$wort123

apiWsdl

URL zur SOAP API Endpoints ihres Magento Shops.

Beispiel: http://meinmagentoshop.de/index.php/api/v2_soap

storeViewId(optional) Die ID des StoreViews in Magento, falls Daten für einen bestimmten Store geupdatet werden sollen.  
limitItems (optional)

Damit kann eingeschränkt werden wie viele Artikel aktualisiert werden. Gerade während der Erstellung eines Flows ist es praktisch diesen Wert eher klein zu halten (z.B. 5), damit nur eine kleine Anzahl an Artikel aktualisiert und damit der Aufwand bei Fehlern minimiert wird.

Default: 25

Beispiel für die Ausgabe des Steps:

Hier sehen Sie den möglichen Output von “MagentoUpdateInventory” - alle im Beispiel enthaltenen Felder würden in Magento gesetzt werden. Erforderlich sind lediglich die Felder “product_id” und “price”, alle anderen Felder sind optional.

Anwendungsbeispiel:

Ein Flow zum Aktualisieren von Preisen und Beständen in Magento könnte beispielsweise so aussehen:

“FTPDownload” holt eine Datei mit EAN-Nummern und Preisen von einem Lieferantenserver ab. Diese Datei wird anschließend mit dem “SpreadsheetCSVReader” in ein Spreadsheet umgewandelt. “MagentoUpdateInventory” sorgt schließlich dafür, dass die im Spreadsheet erhaltenen Informationen an Magento übermittelt werden.


Inputs

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

NameDatentypBeschreibungPflichtfeldWerte
accountACCOUNTIhr KontoJa
inputSPREADSHEETEine Spreadsheet mit der Produkt-ID und dem Bestand aller zu aktualisierenden Produkte.Ja
mappingdefinitionSTRINGDie Mapping-Definition JSON StringNein
Folgende Felder sind zu konfigurieren:

FeldDatentypBeschreibungPflichtfeldStandardwert
product_idSINGLEThe Magento internal ID of the product.Ja
priceSINGLEThe price of the product. Leave empty if you only want to set stock.Nein
special_priceSINGLEThe special price of the product. Leave empty delete special price. If you don't want to set special prices, remove this column.Nein
special_from_dateSINGLEThe special_from_date is a product attribute that defines the start date when a promotional special price becomes active. It works together with special_price and special_to_date to schedule automated discounts. Format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, e.g. 2026-07-24 00:00:00Nein
special_to_dateSINGLEThe special_to_date is a product attribute that defines the final day a special promotional price remains active.. It works together with special_price and special_from_date to schedule automated discounts. Format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, e.g. 2026-07-25 00:00:00Nein
qtySINGLEThe actual stock quantity to setNein
min_qtySINGLEQty for Item's Status to Become Out of StockNein
notify_qtySINGLENotify for Quantity Below this valueNein
in_stockSINGLESet to 1 for 'in stock' and 0 for 'out of stock'Nein
storeViewIdSTRINGDer Code der Magento Store View (z.B. Standard, Französisch, Deutsch etc.). Standard: leer.Nein
limitItemsSTRINGBegrenzen Sie die Anzahl der abgerufenen Elemente.Nein

Outputs

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

NameDatentypBeschreibungWerte
outputSPREADSHEETEin SPREADSHEET mit Informationen über aktualisierte Produkte.
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
identifierSINGLEThe identifier column to import Spreadsheet into a Datastore.
product_idSINGLEThe Magento internal ID of the product.
priceSINGLEThe price of the product. Leave empty if you only want to set stock.
special_priceSINGLEThe special price of the product. Leave empty delete special price. If you don't want to set special prices, remove this column.
special_from_dateSINGLEThe special_from_date is a product attribute that defines the start date when a promotional special price becomes active. It works together with special_price and special_to_date to schedule automated discounts. Format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, e.g. 2026-07-24 00:00:00
special_to_dateSINGLEThe special_to_date is a product attribute that defines the final day a special promotional price remains active.. It works together with special_price and special_from_date to schedule automated discounts. Format: YYYY-MM-DD or YYYY-MM-DD HH:MM:SS, e.g. 2026-07-25 00:00:00
qtySINGLEThe actual stock quantity to set
min_qtySINGLEQty for Item's Status to Become Out of Stock
notify_qtySINGLENotify for Quantity Below this value
in_stockSINGLESet to 1 for 'in stock' and 0 for 'out of stock'
resultSINGLEThis column contains the status message of product update.