TEST MODE
Show details for 6 _ Renamed attributes

6 _ Renamed attributes

This Product

NOTE: An issue has been found with this function. This product will explain how this feature works, however at the time of writing (11/10/23) it will not function correctly. This will be fixed soon.

Columns in the CSV and attributes on the product do not have to be identically named.

As part of the pricing script configuration, we can specify whether there are columns which require mapping to different names. In our example, CSV header "C" will be mapped to attribute "A", and "D" will be matched to attribute "B".

Pricing script configuration

{
    "filePath": "Renamed attributes.csv",
    "quantityColumnName": "Quantity",
    "attributesMappings": [
        {
            "csvKey": "C",
            "attributeName": "A"
        },
        {
            "csvKey": "D",
            "attributeName": "B"
        }
    ]
}

Pricing script CSV

C D Quantity Price
1 1 1 2
2 1 1 3
3 1 1 4
1 2 1 3
2 2 1 4
3 2 1 5
1 3 1 4
2 3 1 5
3 3 1 6
A *
B *
£2.00