This Version is Out of Date
You can find the updated Miva 10 Reference Guide here
2. To Create a Template Based Feed
3. To Download Your Template Feed
Feeds were added in Miva Merchant release 9.0006.
In Miva Merchant, a feed is similar to an export. With a feed you can collect certain kinds of data from your store and make that data available in some way. You can:
As of 09/30/16, there are two types of feeds:
Code: | The code uniquely identifies the feed in your store database |
Name: | The Name is used for display purposes in the admin interface. |
Feed Module: | Select Template Based Feed |
Enable URI Access | If you check this box, you'll be able to generate the feed data by
web browsing to a URI.
See:
|
URI Access Key | Check this box if you want to password protect the URI. See: To Associate a Feed with a URI - Method 1. |
Enable File Creation | Check this box if you want the feed data to be written to a file on your store server. |
File Location: | This field is only used if you check the Enable File Creation
checkbox.
|
File Path: | The File Path field lets you:
Example 1:
Your file will be written to: private/mivadata/myfeed.csv Example 2:
Your file will be written to: private/mivadata/feeds/myfeed.csv Example 3:
Your file will be written to: /myfeed.csv Since this is in a public accessible web directory, you could view this file by browsing to: https://www.domain.com/myfeed.csv |
Enable Email Creation | Check this box if you want to email the feed data. |
Email From: Email Reply To:Email To: Email CC: Email BCC:Email Subject: Email Type: Send Base64 Encoded: |
The fields in bold are required. |
Template: | Choose the type of data to include in the feed. When you create a template feed, you select the type of data to include with the Template field: None, Product, Category, or Customer. If you want to change the type of data in the feed, you have to Customize the feed and use the Mode field. |
When you create a template feed a special Page is created that lets you control the content of the feed. The page has the same name as your feed. For example, if you named your feed "Store Products", you will see a page called "Store Products". There are two ways to edit this page:
Method 1:
Go to > User Interface > Pages tab > edit the page that has the same name as your feed
Method 2:
In the Marketing > Feeds tab, edit the feed that you just created. In the Edit Feed dialog box, click Edit Template.
4.1. When you are editing the page associated with your feed, scroll down to the Template Based Feed section. Make your changes to the page and click Update.
Mode: | Use the Mode field to change the type of data that is included in the feed. For example, when you created the feed, you might have selected Product data. You can use the Mode field to change the feed to use Category data. |
Load: |
|
Encoding: | By default the feed data is formatted as a CSV. If you set this field to CSV, the feed will be processed as a CSV file, which includes using a delimiter between fields and some string quoting. If you set this field to None, the feed won't have the formatting of a CSV file, but you can still select a field delimiter from the Delimiter field (below). |
Delimiter: | Select the field delimiter for the feed data. |
Predict Product Discounts: | If you check this box, your price group discounts will be applied to products in the feed. If you don't check this box, products in the feed will have their non-discounted prices. |
Load Variants: | This field only affects products that have master products and
Variants.
|
Product Fields: Custom Fields: |
Select the Product and Custom fields that you want to include in the feed. |
See:
You can create a feed that is run when someone goes to a specific URI. You would probably only create this type of feed if you wanted to transfer the information from the feed to some external program.
For example:
The "someone" visiting the URI is usually a script or program. You might have accounting software that needs to get updated information about new products in your Miva Merchant store. You would create the URI feed in the admin interface, and then write a program that would periodically go to the URI, generate the feed data and download that data to some location on your network where your accounting software could get it. The cool thing about the "URI feed" is that it lets you place feed generation under the control of an external application. Your external program can get the latest feed data from your Miva store whenever it wants.
1.1. In the Add Feed dialog box, make sure that you check the Enable URI Access checkbox. You may also want to password protect the URI with the URI Access Key field.
4.1. It doesn't really matter what you select in the Type column. In our example, we'll select "Normal".
4.2. In the URI column, enter a URI, starting with a forward slash. There are some limits on the characters you can enter in this field, for example, the URI can't contain spaces. Other than that, the URI can be almost anything you want.
4.3. Click Save URI . You can create multiple URIs for the same feed if you want.
4.4. Click Close.
If you used a URI Access Key, you could generate this feed by browsing to: http://www.miva_sample_store.com/my_feed?Feed_AccessKey=test
If you didn't use a URI Access Key, you would browse to: http://www.miva_sample_store.com/my_feed
55.1. In the Add Feed dialog box, make sure that you check the Enable URI Access checkbox. You may also want to password protect the URI with the URI Access Key field.
55.2. URI: Enter a URI, starting with a forward slash. There are some limits on the characters you can enter in this field, for example, the URI can't contain spaces. Other than that, the URI can be almost anything you want.
55.3. Store: Select the store where you want to create the URI.
55.4. Destination: Select Feed, then click the Lookup icon to open the Feed Lookup dialog box. Select a template feed from the Feed Lookup dialog box, then click OK.
55.5. Type: When you associate a feed with a URI, it doesn't matter what you select in the Type field.
55.6. In the Add URI dialog box, click Add.
If you used a URI Access Key, you could generate this feed by browsing to: http://www.miva_sample_store.com/my_feed?Feed_AccessKey=test
If you didn't use a URI Access Key, you would browse to: http://www.miva_sample_store.com/my_feed