Support forum login

©2006-2008 IAAI Software

Contact Us

register.php

Register a new feed into the system.

Description

register.php
<filename> <format> <merchant> <fieldName> <fieldDescription> <fieldImageURL> <fieldBuyURL> <fieldPrice> <fieldCategory> <userCategory> <fieldBrand> <userBrand>

This command line script registers the specified feed into the system. This script is useful for bulk registration of product feeds from the same affiliate network in which the settings for format and the field mappings will be the same for each merchant. To discover what values to use simply register an example feed using the administration interface.

filename is the name of the feed, which must be present in your /feeds directory. merchant is the name of the merchant as you wish it to appear throughout the site. format is the Magic Parser format string that describes the data representation.

fieldName is the field name associated with the name of the product. fieldDescription is the field name associated with the description of the product. This field is optional, in which case a null entry must be specified, e.g. "". fieldImageURL is the field name associated with the URL of an image of the product. This field is optional, in which case a null entry must be specified, e.g. "". fieldBuyURL is the field name associated with the your affiliate URL for the product. fieldPrice is the field name associated with the price of the product.

fieldCategory is the name of a field containing the product category name. Alternatively, this can be left blank (e.g. "") and all products in the feed can be assigned to a single category provided in userCategory. fieldBrand is the name of a field containing the product brand name (manufacturer). Alternatively, this can be left blank (e.g. "") and all products in the feed can be assigned to a single brand provided in userBrand. All category and brand fields are optional, in which case a null entry must be specified, e.g. "".

Example

php register.php widgets.txt "csv|34|0|1" "Widgets Online" "PRODUCTNAME" "DESCRIPTION" "IMAGE" "DEEPLINK" "PRICE" "MASTERCATEGORY" "" "BRANDNAME" ""