< Back
Print

SC::Shopware – Format Variant Article

A variant product seems to be a single product with lists of options for each variation. However, each option represents a separate, simple product with a distinct SKU.

Notice: If you have not already done so, please activate the SAWS Datamodel for Complex Articles

Example

In the Shopware source data set, section “Attribute mapping for configurable products” select the plugin “SC::Shopware – FormatVariant Article”.

The attribute “PdmarticleID” is fixed and mapped to the code “variants”. The plugin “SC::Shopware – Format Variant Article” is selected.

Click on the gearwheel symbol to open up the settings for variants:

 

Plugin Configuration:

Meaning of the settings for the variant in Shopware

Label Description Example
variant-selector SC_SHOPWAREFIELD_VARIANTS – Referenz to configurable attributes variant_attribute1,

Color

Product values number – Artikel number SW-12345
Product values isMain –  defines the main variant true
Product values additionaltext – Text to be added to the label of the product name for a variant rot
Product values position – Sort order 2
Product values inStock – Stock value 99
Product values active – Product can be purchased 1
Product values prices – Price of the variant, e.g. from SC price table 99.00
Product values Variant Attributes … – Attributes that serve the distinction of variants; several attributes possible, target can be defined freely (here: variant_attribut1 and Color) color1, grün

Result of the variant product export to Shopware

The mapped values are exported for every variant product:

The vairant head contains the “ConfiguratorSet” with all attribute values of the different variants

You can see all variants of the product in the Shopware backend in “Variants”.

Set the Configurator set type

As of version 1.9.3 of the SAWSConnector Shopware, the Configurator type for variants can also be set via the api:

The possible values are:

0: standard (default)
1: selection
2: image

Result in the export:

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents