Create a Template-Based Feed
Navigating to Feeds in Miva
Start by clicking the Marketing header on the left side of the page, and then proceed to click on the Feeds tab.
Creating a New Feed
In the Feeds tab, click on Add Feed. A dialogue box for adding a new feed should pop up. Note that all fields indicated in bold are required:
- Code: A unique identifier for the feed in your store database.
- Name: A display name for the feed within the Miva admin interface.
- Feed Module: Select Template Based Feed for this feed.
- Enable URI Access: Check this box to create a feed data by browsing to a URI. See the sections on Associating a Feed with a URI and Associate a Feed with a URI – Method 1 for more information.
- URI Access Key: Check this box to password protect the URI where the feed is accessible.
- Enable File Creation: Check this box to have the feed data written to a file on your store server.
- File Location: This is applicable only if you enable file
creation. You have two options here:
- Data (Private): The feed data is written to a file in the MivaData folder. By default, this folder is located at /private/mivadata and is not accessible from the web. The file can be downloaded to your local machine via FTP. Miva recommends using this option for feeds containing customer data.
- Script (Public): The feed is written to a file in the root folder of the web server (/httpdocs by default). This location is accessible from the web.
- File Path: This lets you set the name of file that will store the feed data (it must begin with a slash “/”) and write the file to a subdirectory on your server. The subdirectory is relative to either the MivaData folder or the httpdocs folder and must be created before files can be written to it.
- Enable Email Creation: Check this box if you want to email the feed data.
- Set Email From, Email Reply To, Email To, Email CC; Email BCC and Send Base64 Encoded as per your requirements.
- Template: Select the type of data to include in the feed. Options are: None, Product, Category or Customer. Note: If you want to change the type of feed data later, you will need to customize the feed and use the Mode field.
Once done, click the Add button.
Customizing the Feed
After you create a template feed, Miva generates a special page to control the content of the feed. The name of this page is the same as your feed. You can edit this page in two ways:
Method 1
Click the User Interface header on the left side of the page, then the Pages tab. Edit the page with the same name as your feed.
Method 2
Click the Marketing header on the left side of the page, then the Feeds tab. Find the feed you just created, click it, and then click Edit Template in the Edit Feed dialog box.
In the Template Based Feed section of the page, make your desired changes. The following fields are available for you:
- Mode: Change the type of data included in the feed. For example, you may have selected Product data during feed creation. You can now change it to use Category data instead.
- Load: Determines which products appear in your feed. Options include All, Active, Available, In Category, In Price Group, In Availability Group, Not in Category, Not in Price Group, and Not in Availability Group.
- Encoding: Determines the data format of your CSV feed.
- Delimiter: Select the field delimiter for the feed data.
- Predict Product Discounts: Check this box to apply price group discounts to products in the feed.
- Load Variants: Determines how master products and variants are handled in the feed.
- Product Fields/Custom Fields: Select which Product and Custom fields to include in the feed.