Developer forum
E-mail notifications
Pameter based search - multiple manufacturers
Does anyone know if its possible to do a paremeter based search where you search for more than one manucaturer.
My search today looks like this:
eComSearch=1&manufacturer=Aklima
But lets say I want to llok at a second manufacturer - Anoin could you do something like below which works for Groups
eComSearch=1&manufacturer=Aklima, Anoin
thanks in advance
/Regin Madsen
Replies
Søren -> I think youre thinking of the filter search or something like that right?
Another thing: I am quite sure that it has been possible to do parameter based search on custom product fields. Have been through support who is confident that it has never been possible - anyone here who can help me out here? Has it or not been possible?
Hi Regin
It is possible to search for multiple manufacturers using eCom parameter search however comma ',' is not a valid delimiter of values. You can either use spaces ' ' or quotes '"'.
So a search could look like this if some of the manufacturer names contain a space:
?eComSearch=1&manufacturer="Adidas""Reebok""Nike""Air Jordan"
It could also look like this if no manufacturer name contains a space:
?eComSearch=1&manufacturer=Adidas Reebok Nike
And finally you can combine:
?eComSearch=1&manufacturer=Adidas Reebok Nike "Air Jordan"
Regarding parameter search of custom product fields then yes, it is possible. So there are three scenarios to consider. The first is a free text search in all custom product fields. The second is a search for a specific value in a specific field and third is a free text search in specific fields.
The first case is handled like this:
?eComSearch=1&eComQuery="What ever value to search for"&ProductCustomField_=ALL
Note the underscore in "ProductCustomField_". You can skip the eComSearch=1 parameter if you have the search box enabled on the paragraph settings for the Product Catalog.
The second case is handled like this:
?eComSearch=1&myCustomFieldSystemName1=Value1&myCustomFieldSystemName2=Value2
Note that this will only match field and value the way it's specified in the url.
The third case is handled like this:
?eComSearch=1&eComQuery="What ever value to search for"&ProductCustomField_1=myCustomFieldSystemName1&ProductCustomField_2=myCustomFieldSystemName2
Hope this helps :)
- Jeppe
Nice thanks for the input on the manufacturer field - thought Iwe tried about everything, but not the one you mention here!
Regarding the customfields.
Take this example:
?eComSearch=1&ProductPrice=500&ProductPrice_Type=4
This will get all products with a price below 500. But cant you use the same _Type style on custom fields? Should have been more specifik earlier, but that was what I ment.
eg:
?eComSearch=1&Myfield=500&Myfield_Type=4
/Regin
Code wise they behave exactly the same, so this should work:
?eComSearch=1&CustomField=500&CustomField_Type=4
Or rather I should say, it works for me locally :)
You must be logged in to post in the forum