Covered in this article
Shopware-component pages
Created on Updated on
Shopware component

Shopware component

A component to work with Shopware API.

Latest changelog

1.1.2 (December 16, 2019)

  • Add rebound feature to Upsert Object By ID OIH action

To see the full changelog please use the following link.

Description

This is component for Shopware eCommerce software which is developed specifically to run on elastic.io platform.

Requirements

PLEASE NOTE: This component depends on Shopware REST API extenstions, please install it first before proceeding further. please install it first before proceeding further.

This component was tested with the Shopware version 5 (5.6).

Query Articles/Products

Shopware has a concept of Artikel in German which their UI translates to Products in English which is available through their API at the /article endpoint. There is a trigger Query Articles which queries for new & updated products. The results are returned in batches of the form

{
  data:
  [
  //items
  ]
}

The batch size is configurable as a parameter. The batches can be broken up by the mapper as they proceed to the next step.

The output of this method includes only information about the product. It does not include information about the variants of the article. This information can be obtained by having the Query Articles trigger followed by the Get Article Details By Id action. This action will return all the details for an article including information about the articles variants.

Triggers

This component has no trigger functions. This means it will not be accessible to select as a first component during the integration flow design.

Actions

Upsert Object

Action creates a new object or updates object which already exists by provided ID (by default) or Number (MainDetail.Number). This action makes POST request when get message body without ID to create new entity and PUT request when get message body includes ID or Number to update existing object. The request will be repeated (rebound) in case of retrieving following error codes from the remoute server: 408, 423, 429, 500, 502, 503, 504.

Upsert Object action

Shopware API Limitations/Improvements

The Shopware API has many shortcomings which limit the ability to use Shopware out of the box. Shopware allows for features to be requested in their issue tracker.