Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs

The Header text is written once before the first row. The Footer text is written once after the last row. Both are blank by default.

Use them for anything the channel needs around the rows:

  • the XML declaration and the opening and closing <rss> and <channel> elements for Google’s XML format
  • the CSV column line when the feed uses Use Value as Feed

Tokens#

Both boxes accept these tokens:

Token Becomes
{{domain}} The store’s protocol and host, for example https://www.example.com
{{store_url}} The storefront URL
{{store_name}} The store name
{{store_email}} The store email address
{{date}} The date and time the feed was built (ISO 8601)
{{tab}} A tab character
{{newline}} A line break, using the feed’s Line Ending

In XML feeds, the domain, URL, name and email values are entity-encoded, so a store name with & stays valid XML.

Line endings#

For CSV and XML feeds, the module adds a line ending after the header text if it doesn’t already end with one. JSON headers are written as typed. The footer is written as typed.

Examples#

Google Merchant Center XML header:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>{{store_name}}</title>
<link>{{store_url}}</link>
<description>Google Merchant Center product feed</description>

Footer:

</channel>
</rss>

Tab-delimited column line for a feed that uses Use Value as Feed:

id{{tab}}title{{tab}}description{{tab}}link{{newline}}

{{tab}} matters here because a tab typed into the box can be lost when the settings are saved or imported.