PDA

View Full Version : products returning NULL?


J0N3S3Y
12-02-09, 19:52
Hi,

I seem to have an issue where products is returning null and I cant work out why. This is in C# / ASP.net so i'm not holding out much hope for an answer unless there is a .net bod who can help...

I am sending in 4 / Category into RefineByGroup and one of the following: 61, 634, 347, 586 or 493 into RefineByDefinition sId.

These return a null object. Its a generic product class and other categories work fine.

I really haven't got a clue why and ive debugged it the best I can.. any ideas anyone?

I can provide code if needed

nick-harper
16-02-09, 19:39
I am also getting this error.

Have you managed to sort this?

nick-harper
16-02-09, 19:47
This is the code I am using:

$oRefineBy = new stdClass();
$oRefineBy -> iId = 4;
$oRefineBy -> sName = 'Category';
$oRefineByDefinition = new stdClass();
$oRefineByDefinition -> sId = 493;
$oRefineByDefinition -> sName = 'Novelty T-Shirts';
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition;

$aParams7 = array("oActiveRefineByGroup"=> $oRefineBy);
$oResponse = $oClient->call('getProductList', $aParams7);

It seems to work fine with some categories and then returns NULL for others