I have a combination of problems for my listing page,
1- Resetting combined filters.
I am listing companies and want to filter them separately for country and category.
Working great but resetting one of filters once other is selected is necessary, as it turns zero results for most of the combinations.
Total 123 companies, 6 categories, 23 countries.
If you select category C, it has 6 results from 2 of the countries and if you selected a country before category filter, you see no results…
To avoid that I want the filters to reset each other, mainly category filter to reset country selection every time it is used.
I can reset the parameter so results are correct but filter dropdown is no changing itself to initial state.
What is the way to achieve that? I don’t want to recreate a custom drop-down for this…
2- Displaying total number of front-end filtered results
I can show the collection total, but if I am running a filter on the front-end not in the collection, that total is visible when you check collection itself, but I do not know how to call that number from anywhere. Moving both filters to main collection filter will fix it but I just want to know how to reach the front-end number, i can see it as you can see below…