On the website, you sometimes use a filter with many filter values. This makes it more difficult for website visitors to find and select the correct filter value. It can then be helpful to add the ability to search within a filter through the filter values. For example, as shown in the image below.
How to set up search within a filter?
To do this, go to the Tweakwise module Filtering -> Filtertemplates -> Open the filter for which you want to use this function. There you will find the option 'Search box in filter'.
When you enable this setting, you will get the option to enter a Search placeholder text and a No results text.
Search placeholder: This is the text displayed in the search bar.
No results text: This is the text displayed when no results are found.
The search box in filter functionality works out-of-the-box in our Magento plugins and JavaScript implementation. Based on this setting, the API is expanded with the following information:
<issearchable>true/false to indicate if search is available within the facet</issearchable> <searchplaceholder>Placeholder text for the facet search</searchplaceholder> <searchnoresultstext>Text for when there are no results for the facet search</searchnoresultstext>


