A
A
Alexander Plyusnin2019-02-26 16:48:08
WordPress
Alexander Plyusnin, 2019-02-26 16:48:08

How to make a product filter reset button in Woocommerce?

Hello, in standard woocommerce filters there is no button to reset the filter, please tell me the solution, how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Demidov, 2019-03-09
@MaximusDem

Hold this option
1) You will insert this into the header of the site

<?php $filterreset = $_SERVER['REQUEST_URI'];
$filterreset = strtok($filterreset, '?'); ?>

2) A reset button somewhere in the template, where necessary
<a href="<?php echo $filterreset; ?>">Сбросить фильтр</a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question