CSV feed example
Provides a CSV sample for the RSS feed used for importing catalog content from Optimizely Commerce to Optimizely Recommendations.
Each table below represents the layout of the CSV file. The first row is the header of the CSV file, and each row under the header is a single product. For formatting details, see Feed format.
Note
You can have an empty value for the
pubDate
element.
Example 1: Mandatory elements only
title | description | pubDate | guid | link | imageLink | price | category | stock |
---|---|---|---|---|---|---|---|---|
t-shirt | red tshirt with pattern | 1/1/2024 | 12345 | www.examplesite.com/productA | www.examplesite.assets/productA | 100 | mens>clothing>tshirts | 10 |
trousers | work trousers | 1/10/23 | 6789 | www.examplesite.com/productB | www.examplesite.assets/productB | 80 | womens>clothing.trousers | 17 |
Example 2: Mandatory elements with localization
This example only localizes the title
and description
, but you can localize other elements as well. For localization details, see Location attribute.
location_en-GB_title | location_en-US_title | location_ca-FR_title | location_en-GB_description | location_en-US_description | location_ca-FR_description | pubDate | guid | link | imageLink | price | category | stock |
---|---|---|---|---|---|---|---|---|---|---|---|---|
t-shirt | t-shirt | chemise | red tshirt with pattern | red tshirt with pattern | t-shirt rouge à motif | 1/1/2024 | 12345 | www.examplesite.com/productA | www.examplesite.assets/productA | 100 | mens>clothing>tshirts | 10 |
trousers | trousers | pantalon | work trousers | work trousers | pantalon de travail | 1/10/23 | 6789 | www.examplesite.com/productB | www.examplesite.assets/productB | 80 | womens>clothing.trousers | 17 |
Example 3: Mandatory elements with additional attributes
For information on defining and adding additional attributes, see Attribute elements.
title | description | pubDate | guid | link | imageLink | price | category | stock | color | style | collection | margin |
---|---|---|---|---|---|---|---|---|---|---|---|---|
t-shirt | red tshirt with pattern | 1/1/2024 | 12345 | www.examplesite.com/productA | www.examplesite.assets/productA | 100 | mens>clothing>tshirts | 10 | red | patterned | sports | 20 |
trousers | work trousers | 1/10/23 | 6789 | www.examplesite.com/productB | www.examplesite.assets/productB | 80 | womens>clothing.trousers | 17 | navy | straight leg | null | 40 |
Updated 9 months ago