PDA

View Full Version : Bad category results


m4rkbell
11-02-08, 14:03
I'm using the PHP API Client, downloaded from the aw control panel.

This is the code i'm using:

http://m4rk.biz/api/ps_client.phps

on this page:

http://m4rk.biz/api/ps_client.php

by defining aCategoryIds'=>array(247,248,250) i would expect to see products from the Fitness, Other Sports and Team Sports categories.

The products I'm getting back are from a random mix of categories?

Anyone know why that might be?

many thanks,
Mark

Andy
11-03-08, 20:25
Hope Im not too late with this.
the code on the .phps url has this line:
$params5 = array('aCategoryIds'=>array(247, 248,250), 'iLimit'=>3, 'sSort'=>'random');

I have never used 'random' for sSort.
The parameters I've used are: az, za, hi, lo, popular

In includes/classes/class.api_product_list.php around line 37(ish) of the client you'll see var $sSort=
On that line Ive got a comment "// one of [az, za, hi, lo, popular]" I just took it as read that they were the possibilities.