Can't find what you're looking for? Try our AI Chat Bot in the bottom right corner!

Articles in this section

Feed Management

Feed Management

Overview

Template based Feeds are designed to offer maximum flexibility for users to customize their product, category, or customer feeds. These feeds can be run in three ways:

  • Manual execution via the admin interface.
  • Setting up a Scheduled Task to run at specific intervals.
  • Triggering the feed by hitting a specific URL.

Outputs of these feeds support multiple formats like:

  • Writing the feed to a file on the server.
  • Emailing the feed either as an attachment or included in the body of email.
  • Outputting directly to the screen via a URL.

Template Based Feed Settings

Enable URI Access: Novice templates can be configured to have a URI that triggers the feed every time it is accessed. To set the URI for a feed, perform the following steps:

  1. Navigate to URI Management -> URIs Tab.
  2. Click the Plus Sign to add a new URI.
  3. Configure the Feed URI with Destination set to Feed.

Once set up, the Feed can be accessed and run via the following URL: https://www.domain.com/my-feed

URI Access Key: This is an optional field which allows you to add an access key to the URI to control and limit access to the feed. For example: https://www.domain.com/my-feed?Feed\_AccessKey= eep76YAA

Enable File Creation: This setting allows the feed to write to a file on the server instead of being displayed to the screen.

Enable Email Creation: This setting allows you to email the feed, either directly in the body of the email or as an attachment. This setting is independent of the “Enable File Creation”, so if both are check, both actions will occur.

Template: Each feed is associated with a page template. When a new feed is created the following steps are performed automatically:

  1. A new page with the code “TEMPLATEFEED_” + feed code gets created.
  2. The template feeds item gets assigned to the page and the item tag is inserted in the page: <mvt:item name="templatefeed">

The Templatefeed Item

The Templatefeed item controls the output of the feed. It operates in two modes:

  • Point & Click Mode: Allows selection of data fields to include in your feed. The header row and order of fields are fixed in this mode.
  • Advanced Mode: Provides access to the code generating the feed, including the header, iterator, and footer templates.

Advanced Mode

In advanced mode, one can access three different templates:

  • Header Template: Controls the header row for the data being output.
  • Iterator Template: Template controlling the output for each row of data.
  • Footer Template: Added to the end of the feed after all the data has been output.

Feed Data Reference Map

Miva Feeds

New 5.24 Engine Built In Functions

miva_html_strip( string, allowed_tags )

miva_cdata_encode( data )

miva_csv_encode( string, delimiter )

Code Samples

Assigned Categories

Output Color Attribute as List

Output Size Attribute As List

Output Specific Sized Product Image

Feed Completion Call Back

<

Was this article helpful?
0 out of 0 found this helpful