View Full Version : RefineByDefinition Error
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.
Hello,
It seems that this was an error in the documentation and has now been rectified.
Thank you
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?