A issue arrises whenever a user is in a product category and starts using the filters and after that wants to clear all of the filters. The user clicks on “Clear filters” he is always being redirected to /shop/. Normally the user should stay on to the product category page he was on when he started filtering just without any filters selected.
A live example can be seen on: https://verlichtingkopen.com/ /binnenverlichting/hanglampen/. After selecting some filters and clicking “Clear filters” afterwards it will take you to https://verlichtingkopen.com/shop/ instead of the original category page https://verlichtingkopen.com/ /binnenverlichting/hanglampen/
March 23, 2019 @ 12:19 pm
The code was in there to do this, but had a bug. That bug has been fixed but it’s still possible to achieve the previous functionality if you wish.
In the “existing filters” widget, if you set ‘display category as filter’ to yes then when user clicks ‘clear filters’ it will revert to /shop/ or whatever your shop URL is.
If you have it set to no, it will now correctly send the user to /product-category/dogs/ or /filter/dogs/ depending on which approach you are using instead of /shop/ – i.e. the category will not be removed by the clear filters button.