Task
The CSV has regular products and gift cards. The Gift card column should be true only for certificates or gift cards.
Short answer
Create Gift card: default to false, and set true when product_type contains gift card or certificate.
How to Do It in Eofferix
- Open the settings of the output
Gift cardcolumn.
The screenshot shows the output Gift cardcolumn and the settings icon used to open its settings. - In
Transformations, setfalseby default and add a separate rule for gift cards.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| Handle | Title | product_type |
|---|---|---|
| gift-card-50 | Gift card 50 | gift card |
| desk-lamp | Desk lamp | physical |
After
result| Handle | Gift card |
|---|---|
| gift-card-50 | true |
| desk-lamp | false |