Task
The color is written in the product name, for example Basic T-shirt XL black. The catalog needs a separate color column.
Short answer
Create color from name and add a small dictionary: when the name contains a color, replace the value with the normalized color.
How to Do It in Eofferix
- Open the settings of the output
colorcolumn.
The click is on the settings icon of the colorcolumn. - In
Transformations, add substring rules:black→black,white→white.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| sku | name |
|---|---|
| SKU-400 | Basic T-shirt XL black |
| SKU-401 | Outdoor jacket M white |
After
result| sku | color |
|---|---|
| SKU-400 | black |
| SKU-401 | white |