Developer forum

Forum » Ecommerce - Standard features » Priority result in instant search (eCommerce)

Priority result in instant search (eCommerce)

Henrik Bloch
Reply
Does Anybody know how to Make a priority result in instant search.
Example: First list all the results from the field "product number", then all the results from field "product names"

If there is a match in both fields then show all results.
If no match is found in the field "product number" then show all results from field "product names"

Replies

 
Pavel Volgarev
Reply
Hi Henrik,

Unfortunately it's not possible. But you can write an add-in that will reorder products according to your requirements. Use Dynamicweb.Notifications.eCommerce.ProductList.BeforePaging notification to change the default sort order. Note that this notification is not fired when using instant search, only when using a normal, filter-based search. When using instant search, products are always sorted by relevance.

-- Pavel 

 

You must be logged in to post in the forum