Developer forum

Forum » Feature requests » Main search by categories

Main search by categories

Tomas Gomez
Reply

Hi,

It would be nice that the main search in the header of the page would be able to search by a category product. This way, a selector would be displayed to choose the product category, with "All" products selected by default.  At the backend, the Search item would have a checkbox "Search by category" to show/hide the selector in the search bar.

This is a standard feature in many websites, e.g. Amazon (see image)

AFAIK this feature is not in Swift, so I am going to implementing by adding the selector in Swift_SearchField.cshtml. Is this ok?

Regards,
Tomas

 

 


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Tomas,

 

We are also implementing it on a site for a customer. Some additional thoughts are:

  • Consider only Top Groups OR picking a parent Groups
    +
  • A group custom field (checkbox) for "Enable in search field"
    So that you don't render all groups  - specially if you have integration bringing those fields directly

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Tomas Gomez
Reply

Hi Nuno,

Thanks for the suggestions, I like specially the "Enable in search field" group custom field  :-)

Regards,
Tomas