Setting Search Defaults
There are a number of optional parameters you can add to the querystring to specify default search conditions. Regardless of what the search engine displays by default, the visitor will still be able to search from the collective databases of all your affiliated merchants unless you disable the search bar.
catnum
By adding
catnum=<id> to the querystring, you can display only products from the specified category. You can find the
catnum you want by logging into your affiliate account and using the
category finder. Example:
<script type="text/javascript" src="http://www.datafeedfile.com/dff_jsthrow.php?
script=search_index&affid=1001&catnum=340"></script>
mernum
By adding
mernum=<id> to the querystring, you can display only products from the specified merchant by default. You can find the
mernum of a merchant by logging into your affiliate account and using the
merchant finder. Example:
<script type="text/javascript" src="http://www.datafeedfile.com/dff_jsthrow.php?
script=search_index&affid=1001&mernum=2016"></script>
mfgnum
By adding
mfgnum=<id> to the querystring, you can display only products from the specified manufacturer by default. You can find the
mfgnum of a manufacturer by logging into your affiliate account and using the
manufacturer finder. Example:
<script type="text/javascript" src="http://www.datafeedfile.com/dff_jsthrow.php?
script=search_index&affid=1001&mfgnum=2014"></script>
keyword
By adding
keyword=<keyword> to the querystring, you display the result of a specific keyword search by default. You must URL-encode the keyword value. For more information on URL encoding, see
URL encoding. Example:
<script type="text/javascript" src="http://www.datafeedfile.com/dff_jsthrow.php?
script=search_index&affid=1001&keyword=star+wars"></script>
You can pass the script multiple parameters