Hi
What's the basic set up to query a product list to get back only products in a specific category ID?
Thanks
i
currentstyle
18-02-09, 23:46
Pardon the php :)
$oRefineBy = new stdClass();
$oRefineBy -> iId = 4;
$oRefineBy -> sName = 'Category';
$oRefineByDefinition = new stdClass();
$oRefineByDefinition -> sId = Your category ID;
$oRefineByDefinition -> sName = 'Your Category Name';
$oRefineBy -> oRefineByDefinition = $oRefineByDefinition;
Change Your category ID and Your Category Name to whatever category you're trying to access, then add this to the params before the call
"oActiveRefineByGroup" => $oRefineBy
so your params may look something like this:
array("sQuery" => "wii", "iLimit"=>10, "oActiveRefineByGroup" => $oRefineBy)
Does that make sense? or work for you?