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

Miva Developer Docs

This walks through a simple product feed with Feed Builder: a CSV file of active products with code, name, price and link.

1. Create the feed#

  1. Go to Marketing > Feeds and click Add Feed.
  2. Enter a code (for example my_feed) and a name.
  3. Choose MivaLabs Feed Builder as the module.
  4. Under file settings, turn on saving to a file and enter a file name, for example /my-feed.csv. The path is relative to the store’s script directory (the web root). A folder in the path must already exist.
  5. Save.

The feed now shows a link, Edit Feed Builder. Before the first save it shows “Save this feed, then come back here to configure the source filter, field mapping, and preview.”

2. Choose the products#

Click Edit Feed Builder. The Source tab opens.

  • Leave Source on Product.
  • Leave Products on Active, or choose another option such as Available or In Category. See Source tab.
  • Leave Include on All products.

3. Choose the columns#

Open the Feed Fields tab. A new feed starts with these fields:

Source Output name
Product Code id
Name title
Description (strip HTML) description
Product URL link
Main Image image_link
Additional Images additional_image_link
Price price

Remove any you don’t need with Remove, add more with + Add field, and drag the ☰ handle to change the order. Each output name becomes a CSV column heading.

Leave Output Format on CSV and Delimiter on Comma.

4. Check the preview#

Save, then open the Preview tab. It shows up to 10 rows exactly as the feed will write them. The Preview tab uses the saved settings, so save first.

5. Run it#

Go back to Marketing > Feeds, select the feed and click Process Now. The file is written to the name you entered. Open it at https://www.your-domain.com/my-feed.csv.

To rebuild it on a schedule, add a scheduled task that processes this feed (Miva’s standard feed operation, stdschtasks / feed). See Running and delivering feeds.

Next steps#