PDA

View Full Version : GetProductList only returns Single word searches


murdoco
20-02-09, 11:38
Hi,

I have implemented the feed and managed to get it working for single words like "ghd"

HOWEVER when I search for "IV+styler" which I know is a product as it comes up as the first product when searching for ghd it returns nothing. below is the output of the array for sQuery and the output I recieve

Array ( [sQuery] => IV+styler [bAdult] => [iLimit] => 10 )

stdClass Object
(
)


Do I need to put % around or what??? tried with and without the + to replace the spaces. Any help would be great.

CODE below currently used:

$sword = "IV+styler";
$aParams7 = array("sQuery" => "$sword", "bAdult" => false, "iLimit"=>10);
$oResponse= $oClient->call('getProductList', $aParams7);


Big thanks:D

currentstyle
20-02-09, 11:58
how bizarre, the API call seems to take exception to the 'IV' bit,

$sword = "Mini Styler";
$aParams7 = array("sQuery" => $sword, "bAdult" => false, "iLimit"=>10);

works fine, shows mostly IV mini stylers

$sword = "ghd Styler";
$aParams7 = array("sQuery" => $sword, "bAdult" => false, "iLimit"=>10);

shows plenty too.


$sword = "xx Styler";
$aParams7 = array("sQuery" => $sword, "bAdult" => false, "iLimit"=>10);

throws the same error

don't know what to say to that?? :rolleyes:

murdoco
20-02-09, 12:19
Hi ,

Thanks for that.. I worked out that using different words worked too!!!
So seems like I landed in a barrel of breasts and ended up coming out sucking my own thumb. Thanks for the help.
Murdoco