• Resolved sokien

    (@sokien)


    I’m thrilled with how well Instant Search works on my website! However, I’m struggling to find a way to enable a “Clear All Filters” option after users apply facets. I am currently using instant search, and I 5 facet fields. I need a button that allows the users to clear the filter Any guidance would be greatly appreciated!

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Sachyya

    (@sachyya-sachet)

    Hello @sokien ,

    We appreciate your positive feedback, and we are delighted to hear that the plugin has proven useful to you.

    As for the “Clear All Filters” option, its current implementation is not feasible as it would require customizations in the JavaScript code as well. Rest assured, we have plans to include this feature in the future, but at the moment, we are focused on addressing other high-priority issues and implementing essential features. We will keep you informed as soon as it becomes available. Thank you for your understanding.

    Thread Starter sokien

    (@sokien)

    Hello,

    While I understand that there might be other issues at play, are you indicating that once the facets are selected, I have absolutely no way to restore the correct values – not even for single facet?

    Plugin Contributor Sachyya

    (@sachyya-sachet)

    Hello,

    Yes,, you can use the swtInstance an object which stores the instance of the current Instant Search that provides a helper function clearRefinements

    You can use it like this: swtInstance.cm_swt_instant_search_1.helper.clearRefinements

    Hope this helps.

    Thread Starter sokien

    (@sokien)

    Hi,

    Thank you a lot. With this method, I was able to add a button to clear the facets selection.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deselect all the filters’ is closed to new replies.