Task
The feed contains regular products and products marked 18+. The adult column should be yes only for 18+ products and no for the rest.
Short answer
Create adult, set no as the default, then replace it with yes when title or category contains 18+ or adult.
How to Do It in Eofferix
- Open the settings of the output
adultcolumn.
The click is on the settings icon of the output adultcolumn. - In
Transformations, add thenodefault and rules that checktitleandcategoryfor 18+ markers.
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-130 | Poster 18+ collection | adult goods |
| GM-131 | Family board game | family games |
After
result| id | adult |
|---|---|
| GM-130 | yes |
| GM-131 | no |