Task
Product variants need a unique offer_id, for example P1001-red-M, built from product id, color and size.
Short answer
Create the field from product_id and append {color} and {size} with hyphens.
How to do it in Eofferix
- Create
offer_idfromproduct_id.
The variant identifier is built from several source columns. - Add a rule that appends
-{color}.
{color}and{size}are appended toproduct_idwith hyphens. - Add a second rule that appends
-{size}. - Check that every variant has a unique identifier.
Before / after
The data below is a training example and does not belong to real user files.
Before
source data| product_id | color | size |
|---|---|---|
| P1001 | red | M |
| P1001 | blue | L |
After
result| offer_id |
|---|
| P1001-red-M |
| P1001-blue-L |