authcode
01-04-07, 19:22
I'm writing code from scratch and I can't seem to get a product list for a category with the following code:
$oClient = new api_client();
$aProductListParams = array('iCategoryId'=>$currentCategory);
$oProductList = $oClient->call('getProductList', $aProductListParams);
echo $oProductList->iTotalCount.'<br />';
where $currentCategory is any valid categoryId. iTotalCount is always 0. I'm assuming that if I don't pass in merchantIds then it defaults to products from all merchants? If not, how do I get a list of merchantIds for a category??? Would really appreciate any help!
$oClient = new api_client();
$aProductListParams = array('iCategoryId'=>$currentCategory);
$oProductList = $oClient->call('getProductList', $aProductListParams);
echo $oProductList->iTotalCount.'<br />';
where $currentCategory is any valid categoryId. iTotalCount is always 0. I'm assuming that if I don't pass in merchantIds then it defaults to products from all merchants? If not, how do I get a list of merchantIds for a category??? Would really appreciate any help!