Task
The source sends image paths such as /upload/1001.jpg, while the receiver accepts only absolute URLs.
Short Answer
In image_url, add a rule: if the current value does not contain http, add the site domain at the beginning.
How to Do It in Eofferix
- Open the
image_urlcolumn settings in the table editor.
The red frame shows where to open the required column settings. - In Transformations, add: condition Does not contain substring
http, action Add to beginning, valuehttps://shop.example.com.
If the value does not contain http, Eofferix adds the domain before it. - For XML, open the image URL node and apply the same value rule.
- Save the settings.
Before / After
Before
source data| sku | image_path |
|---|---|
| SKU-1001 | /upload/1001.jpg |
| SKU-1002 | https://cdn.example.com/1002.jpg |
After
result| sku | image_url |
|---|---|
| SKU-1001 | https://shop.example.com/upload/1001.jpg |
| SKU-1002 | https://cdn.example.com/1002.jpg |