Task
The source table stores gender inside the product name or category. Google Merchant needs male, female, or unisex.
Short answer
Create gender: use unisex by default, map men to male, and map women to female.
How to Do It in Eofferix
- Open the settings of the output
gendercolumn.
The click is on the settings icon of the output gendercolumn. - In
Transformations, add theunisexdefault and two dictionary rules by category: men items tomale, women items tofemale.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| id | title | category |
|---|---|---|
| GM-110 | Men Sprint sneakers | men shoes |
| GM-111 | Women Summer dress | women clothing |
| GM-112 | City backpack | accessories |
After
result| id | gender |
|---|---|
| GM-110 | male |
| GM-111 | female |
| GM-112 | unisex |