Data feed file integration price comparison shopping script

Documentation Wiki - DataFeedFile.com - Online merchant datafeed integration for affiliates : dffPagingOffsetLimit

HomePage | Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Home Affiliate FAQ Merchant FAQ Examples Merchants Networks & Programs Forum Blog Wiki Knowledge Base Login

Revision [511]

Last edited on 2008-11-30 12:18:34 by admin
Additions:
- tells you how many of the 310 products included in the data results have [[DFFprorductsExplanation DFF Product SKU]] (price comparable using [[dffPPC PPC]]).
- [core_prdt_count] tells you how many of the 310 products included in the data results have [[DFFprorductsExplanation DFF Product SKU]] (price comparable using [[dffPPC PPC]]).
Deletions:
- tells you how many of the 310 products included in the data results have DFF Product SKU (price comparable using [[dffPPC PPC]]).
- [core_prdt_count] tells you how many of the 310 products included in the data results have DFF Product SKU (price comparable using [[dffPPC PPC]]).


Revision [510]

Edited on 2008-11-30 12:16:39 by admin
Additions:
==Example of PHP script creating paging links using JSON array results via [[DFFFrameworkAPI DFF PHP Client Library]]==
The purpose of the example source code below is to show you how to calculate for $total_page variable amongst all the other variables returned from search result.
Deletions:
==Example of PHP script creating paging links using JSON array results via DFF PHP Client Library==


Revision [509]

Edited on 2008-11-30 12:14:18 by admin
Additions:
==Example of PHP script creating paging links using JSON array results via DFF PHP Client Library==
%%(php)
// GET DATA USING DFF CLIENT LIBRARY
$dff_request = new DFF_Client_API;
$dff_request->set_using_DFF_config();
if($keyword!='') $pse_params['keyword'] = $keyword;
if($sort!='') $pse_params['sort'] = $sort;
if($cat1num>0) $pse_params['cat1num'] = $cat1num;
if($mernum>0) $pse_params['mernum'] = $mernum;
$pse_params['limit'] = 20;
$offset = ($page-1)*$pse_params['limit'];
$pse_params['offset'] = $offset;
$pse_params['debug'] = 1;
$result = $dff_request->post_request(DFF_PSE,$pse_params);
$dff_request->convert_json_to_array();
//WHICH RECORD IS THE FIRST AND LAST SHOWING ON CURRENT PAGE?
$rec_start = (($page-1) * $pse_params['limit'])+1;
$rec_end = ($rec_start + $pse_params['limit'])-1;
if($rec_end>$dff_request->result_array['product_count']) $rec_end = $dff_request->result_array['product_count'];
// GENERATE TOTAL PAGE
$total_page = ceil($dff_request->result_array['product_count'] / $pse_params['limit']);
%%
==Still Confused?==
Doing XML/JSON query is not for a new programmer. If you have not done any paging functionality, this guide may also be somewhat confusing for you. You may want to seek for a more advanced programmer.


Revision [508]

The oldest known version of this page was created on 2008-11-30 12:02:56 by admin
Integrate price comparison shopping data feed file from thousands of online merchant product data feeds | Valid CSS

Page was generated in 0.0367 seconds