Using PSE with Shop by Category
Example :
Wizard
Search by Category is useful when you need to narrow down or limit your search result to show only a particular category of products. For example, if you have a web site which sells costumes... if someone searches for the keyword 'superman', you do not want to show superman books or movies, specifying the category # to 2213 (costume) will limit the search result to show only costumes.
We are going to show two examples using Javascript and PHP to show products from Costume category. Costume is category # 2213 or DFF catnum # 2213.
There are several ways to find categories and find out their DFF catnum # (catnum):
Category # Finder, Category List:
CSV/Excel,
TAB
Javascript:
<script language="javascript" src="http://www.datafeedfile.com/dff_jsthrow.php?script=search_index&affid=____&catnum=2213"></script>
Examine the &catnum=2213 parameter from the javascript calling script above. Please note that you have to separate parameters with '&' ampersand sign. Also, make sure to replace the after affid= with your DFF Affiliate ID.
PHP:
<?include('http://www.datafeedfile.com/dffphp_script_search_index.php?dff_affid=____&dff_catnum=2213&'.$_SERVER['QUERY_STRING']);?>
Examine the &catnum=2213 parameter from the PHP calling script above. Please note that you have to separate parameters with '&' ampersand sign. When using PHP scripts you have to prepend the prefix 'dff_' in front of every single parameter. Also, make sure to replace the after affid= with your DFF Affiliate ID.
Options and Parameters you can pass to PSE
There are many options / parameters you can specify when using the DFF PSE script. While none of the parameters are required except for
affid, you should at least specify one filtering parameters such as keyword or category, otherwise the default search result will be random and will not show anything useful.
See all available PSE parameters
There are no comments on this page. [Add comment]