Last Updated 3 years ago
How to import products with combinations
1. In the second step of the configuration, define the path to the XML tag containing the single combination. For a better understanding, we will show it in the snippet of the file:According to the file data, the path to the combination is param[name="size"].
2. Then, in the second step of the configuration, it is necessary to set whether the already existing combinations are to be updated and whether the nonexistent ones are to be added:
3. In the stage of data matching, you need to adjust the data that you want to import / update from the file to the store. The screenshots below show the full configuration:
Screen 1:
Screen 2:
Screen 3:
As you can see above, the product ID and quantity are outside the tag of the combinations defined in the second step of the import configuration. For this reason, the module imports these values for each combination inside the product tag.
Important! The path was used in the custom value match for the attribute param[@name='size']/self::node() because its beginning must be the same as the combination path from step two (param[@name='size']). The self::node() mean that it point itself. |
According to the above import configuration, 3 combinations will be imported:
1.
Product ID = 3530
Qty = 2420
Attribute name = Size
Attribute value = 15
2.
Product ID = 3530
Qty = 2420
Attribute name = Size
Attribute value = 25
3.
Product ID = 3530
Qty = 2420
Attribute name = Size
Attribute value = 35