<
HomeProviding a Salesfire product feed allows us to use AI technology to offer more advanced features.
Our focus has been to ensure the product feed is simple and straightforward, it will usually take a developer under an hour to complete.
See below what is required in our product feed, we have provided an example alongside each field definition.
<?xml version="1.0" encoding="utf-8" ?> <productfeed site="http://local.example/" date-generated="2020-01-21T16:21:58+00:00"> <categories> <category id="category_4"> <id>4</id> <name><![CDATA[Women]]></name> <breadcrumb><![CDATA[Women]]></breadcrumb> <link>http://local.example/women.html</link> </category> </categories> <products> <product id="product_339"> <id>339</id> <title><![CDATA[Retro Chic Eyeglasses]]></title> <description><![CDATA[Acetate frame. Polycarbonate lenses.]]></description> <price currency="GBP">295</price> <sale_price currency="GBP">295</sale_price> <attributes> <example_1>mild</example_1> <example_2>medium</example_2> </attributes> <mpn><![CDATA[ace002]]></mpn> <link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link> <image><![CDATA[http://local.example/media/catalog/product/a/c/ace002a_1.jpg]]></image> <gender><![CDATA[Male]]></gender> <brand><![CDATA[Retro]]></brand> <categories> <category id="category_18" /> </categories> <skus> <sku>123</sku> <sku>456</sku> </skus> <variants> <variant> <id>339</id> <colour><![CDATA[Black]]></colour> <mpn><![CDATA[ace002]]></mpn> <stock>1</stock> <size><![CDATA[ 6/8/10 ]]></size> <age_group><![CDATA[ adult ]]></age_group> <link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link> <image><![CDATA[http://local.example/media/catalog/product/a/c/ace002a_1.jpg]]></image> <skus> <sku>123</sku> <sku>456</sku> </skus> <attributes> <example_1>mild</example_1> <example_2>medium</example_2> </attributes> </variant> </variants> </product> </products> </productfeed>
The Salesfire schema always begins with the XML tag, and the opening product feed tag:
<?xml version="1.0" encoding="utf-8" ?> <productfeed site="http://local.example/" date-generated="2020-01-21T16:21:58+00:00">
The opening tag needs to contain the site and date-generated attributes:
<productfeed site="http://local.example/" date-generated="2020-01-21T16:21:58+00:00">
<productfeed site="http://local.example/" date-generated="2020-01-21T16:21:58+00:00">
You should then include an array of every category available, all contained within <categories> </categories> tags as per the code example below. You would only add the closing </categories> tag after you have a <category></category> section for every category.
<category id="category_4">
<id>4</id>
<name><![CDATA[Women]]</name>
<breadcrumb><![CDATA[Women]]></breadcrumb>
<link>http://local.example/women.html</link>
<categories> <category id="category_4"> <id>4</id> <name><![CDATA[Women]]></name> <breadcrumb><![CDATA[Women]]></breadcrumb> <link>http://local.example/women.html</link> </category> </categories>
You should then include an array of every product available, all contained within <products></products> tags as per the code example below. You would only add the closing </products> tag after you have a <product></product> section for every product.
Note: Data held in the <variants></variants> section will be covered in the following section.
<product id="product_339">
<id>339</id>
<title><![CDATA[Retro Chic Eyeglasses]]></title>
<description><![CDATA[Acetate frame. Polycarbonate lenses.]]></description>
<price currency="GBP">295</price>
<sale_price currency="GBP">295</sale_price>
<link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link>
<gender><![CDATA[Male]]></gender>
<categories> <category id="category_18" /> </categories>
<skus> <sku>123</sku> <sku>456</sku> </skus>
<mpn><![CDATA[ace002]]></mpn>
<brand><![CDATA[yourbrand]]></brand>
<products> <product id="product_339"> <id>339</id> <title><![CDATA[Retro Chic Eyeglasses]]></title> <description><![CDATA[Acetate frame. Polycarbonate lenses.]]></description> <brand><![CDATA[yourbrand]]></brand> <price currency="GBP">295</price> <sale_price currency="GBP">295</sale_price> <attributes> <example_1>mild</example_1> <example_2>medium</example_2> </attributes> <mpn><![CDATA[ace002]]></mpn> <link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link> <gender><![CDATA[Male]]></gender> <categories> <category id="category_18" /> </categories> <skus> <sku>123</sku> <sku>456</sku> </skus> <variants> <variant> <id>339</id> <colour><![CDATA[Black]]></colour> <mpn><![CDATA[ace002]]></mpn> <stock>1</stock> <size><![CDATA[ 6/8/10 ]]></size> <age_group><![CDATA[ adult ]]></age_group> <link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link> <image><![CDATA[http://local.example/media/catalog/product/a/c/ace002a_1.jpg]]></image> <skus> <sku>123</sku> <sku>456</sku> </skus> </variant> </variants> </product> </products>
Inside of each individual product array, if the product has multiple options/variants you need to include a variants array as below using the <variants></variants> tag. Within this, you need a <variant></variant> section for each of the different options / variants available.
Please note: If the product does not have any options or variants, you need to include this at least once with the same information as the parent as it is a required section. All non-required fields will default to the parent product.
<id>339</id>
<image> <![CDATA[http://local.example/media/catalog/product/a/c/ace002a_1.jpg]]> </image>
<link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link>
<stock>1</stock>
<size><![CDATA[ 6/8/10 ]]></size>
<age_group><![CDATA[ adult ]]></age_group>
<colour><![CDATA[Black]]></colour>
<mpn><![CDATA[ace002]]></mpn>
<price>295</price>
<sale_price>295</sale_price>
<attributes> <example_1>mild</example_1> <example_2>medium</example_2> </attributes>
<skus> <sku>123</sku> <sku>456</sku> </skus>
<variants> <variant> <id>339</id> <colour><![CDATA[Black]]></colour> <mpn><![CDATA[ace002]]></mpn> <stock>1</stock> <size><![CDATA[ 6/8/10 ]]></size> <age_group><![CDATA[ adult ]]></age_group> <link><![CDATA[http://local.example/retro-chic-eyeglasses.html]]></link> <image><![CDATA[http://local.example/media/catalog/product/a/c/ace002a_1.jpg]]></image> <skus> <sku>123</sku> <sku>456</sku> </skus> <attributes> <example_1>mild</example_1> <example_2>medium</example_2> </attributes> </variant> </variants>