Location: PHPKode > scripts > Price Comparison Shopping by DataFeedFile > price-comparison-shopping-by-datafeedfile/include/DFF_mer.func.php
<?php
/**************************************************************
*
* DataFeedFile.com (DFF) Framework API
* Copyright (c) 2008 DataFeedFile.com
*
* DFF Framework API uses CreativeCommons.org by-sa license.
* This license lets others remix, tweak, and build upon your work even for commercial reasons,
* as long as they CREDIT DataFeedFile.com and license their new creations under the identical terms.
* This license is often compared to open source software licenses.
* All new works based on yours will carry the same license, so any derivatives will also allow commercial use.
* Please read our license.txt file for more detail.
*
**************************************************************/
require_once $DFF_config['dir_include'].'DFF_affiliate_client_API.php';

function DFF_get_merinfo($mernum, $return_stats=0, $return_categories=0, $return_product_top10=0, $return_deal_newest10=0) {

	// GET LOWEST MERCHANT STORE INFO
	$dff_request = new DFF_Client_API;
	$dff_request->set_using_DFF_config();
	
	$merinfo_params = array();
	$merinfo_params['mernum'] = $mernum;
	if($return_stats>0) $merinfo_params['return_stats'] = $return_stats;
	if($return_categories>0) $merinfo_params['return_categories'] = $return_categories;
	if($return_product_top10>0) $merinfo_params['return_product_top10'] = $return_product_top10;
	if($return_deal_newest10>0) $merinfo_params['return_deal_newest10'] = $return_deal_newest10;
	
	$result = $dff_request->post_request(DFF_MERINFO,$merinfo_params);
	if($result){
		$dff_request->convert_json_to_array();
		return $dff_request->result_array;
	}
	return FALSE;

}

?>
Return current item: Price Comparison Shopping by DataFeedFile