Problems with fliter clear and reload
-
Hi
Nice set of filters.
I’m having trouble with the clear button, and a product category will not “uncheck” the final product in the list of checkboxes.
I fixed the problem by adding
currentUrl.searchParams.forEach(function(value, key) { currentUrl.searchParams.delete(key); });
before
for ( const i in result ) { currentUrl.searchParams.set( i, result[ i ] ); }
Can you foresee me experiencing any possible issues because of this? (apart from issues with new updates?)
Also I am having issues with the return of a page with no results – it wipes the content of my page, removing title and the widget container/shortcode output itself.
.no-products-found
replaces the entire content of the page. A reload fixes the issue.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problems with fliter clear and reload’ is closed to new replies.