PDA

View Full Version : RefineByDefinition Error


J0N3S3Y
11-09-08, 14:49
The following object:

<xsd:complexType name="RefineByDefinition">
<xsd:sequence>
<xsd:element name="sId" type="xsd:string" />
<xsd:element name="sName" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>

The documentation says that the sID is an int.

GeorgeGaz
11-09-08, 16:28
Hello,

It seems that this was an error in the documentation and has now been rectified.

Thank you

darlomrh
11-09-08, 22:23
According to the documentation for RefineByDefinition
Both sId and sName are required inputs. Is this the case?

Also when I set the RefineByGroup->iId = 2 and RefineByDefinition->sName = "Some Brand" I would expect getProductList to return products related to "Some Brand".

This currently not happening.

// Example refine by structure
// Refine by Brand (2)
$oRefineBy = new stdClass();
$oRefineBy->iId = 2;
$oRefineBy->sName = 'Brand';

// Refine by Brand Name
$oRefineByDefinition = new stdClass();
$oRefineByDefinition->sId = '';
$oRefineByDefinition->sName = 'Sony Ericsson';
$oRefineBy->oRefineByDefinition = $oRefineByDefinition;

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


The above code brings back random entries.


Any ideas?