1
I have an option on my site that is the facility to search the products by subfilters, but now I have a problem, I need to "clean" this navigation, going back to before research, I used a technique not interesting in trying to solve the problem, create a button and put in it the following code:
<a class="button orange"href="javascript:window.history.go(-1)">Limpar Filtros</a>
But of course, I have some problems with that, if the customer navigates through more than one filter he will return exactly where he passed. I could not have a solution for this, if you prefer to see the example, go here and browse the subfilters and click on the "clean filters":
The javascript:window.history.go(-1) command does the same as a click on the "Back Page" in the browser. With its current structure, the fastest way to clean the filters is to redirect to the initial category. But the ideal solution would be your products loaded through AJAX keeping your filters untouched.
– Tobias Mesquita