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

Miva Developer Docs

Feed Builder is a feed type. Create one under Marketing > Feeds > Add Feed, then click Edit Feed Builder to set it up.

The feed record#

The Feeds screen has two settings of its own:

Setting What it does
Feed Builder The Edit Feed Builder link to the builder. It appears after the first save.
Trigger A scheduled task trigger name. When products change, the module fires this trigger so the feed is rebuilt. See Running and delivering feeds.

Everything else on the Feeds screen works as it does for any Miva feed: file saving, email delivery and URI access.

The builder#

The builder has five tabs.

Tab What you set
Source Products or categories, which products to read, conditions, and whether variants become rows
Header Text written before the first row
Feed Fields Output format, delimiter, line ending and the list of fields
Footer Text written after the last row
Preview Sample rows built from the saved settings

Each tab saves with the page’s Save button.

How a feed is built#

When the feed runs (Process Now, a scheduled task, or a request to its URI), the module:

  1. Writes the Header text.
  2. Writes the CSV column line, or [ for JSON.
  3. Reads products in batches of 500, in display order. It applies the Products setting, then the conditions, then writes one row per product, or one per variant when variants are on.
  4. Writes ] for JSON.
  5. Writes the Footer text.

Rows are written as each batch finishes, so memory use stays flat on large catalogs.