• Resolved amirand926

    (@amirand926)


    Hey YITH,
    When going to a direct link on my site that includes filters, as opposed to using the filters to get to it, the reset filters button does not reset and or bring me back to the appropriate beginning, shop page. Same thing happens on your demo page.

    E.g.
    1. Go to your site DIRECTLY which filters your blue style
    2. Click reset filters at the bottom.
    3. Notice how your filter did NOT reset back to shop page and blue is still selected/filtered. Clicking reset again doesn’t do it either.

    Providing links to users using the filters is a necessity for me. I suppose an easy way around it might be to just make the Reset All Filters button link to the */shop page, but would require custom code and or is not necessarily AJAX usage.

    Many thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,

    Please can you try with latest version that our developers release today ?

    Let me know
    Have a nice day
    YITH

    Hi, I had the same problem – the reset button did not worked, actually the href for this button was empty. I fixed it temporarly by adding line

    $field = 'term_taxonomy_id';

    after line 79 to class.yith-wcan-reset-navigation-widget.php

    so the href now correctly directs to basic URL of active category

    (WordPress 4.7.2, Woocommerce 3.0.5, WPML)

    • This reply was modified 7 years, 10 months ago by michalfibek.

    This problem has not yet been fixed. Reset filter does not work on filtered product archive pages. Using version 3.4.0 – Released: 08 May, 2017

    New: Sorting option for free version
    Fix: Issue with current filter in product tag page
    Fix: Unable to filter with qTranslateX and Socute theme
    Fix: Unable to filter with qTranslateX and YITH theme FW 1.0
    Fix: Issue with reset button in product_tag page

    Could you have a look at this please?

    Thanks,
    Wizard247

    Plugin Author YITHEMES

    (@yithemes)

    Hi @michalfibek and @wizard247,

    our developers released the version 3.4.1 the 8th of May and this version solve this issue.

    Please, can you check it and let me know ?
    Thanks
    Have a nice day
    YITH

    Hi @yithemes, for me it’s solved, thank you!

    Have a nice day
    Michal

    Plugin Author YITHEMES

    (@yithemes)

    Hi @michalfibek,

    thanks!
    I mark this ticket to solved!

    If your like our plugins and our support, please give us a good review ??

    Have a nice day
    YITH

    Hi @yithemes,

    In my case the reset all filters button redirects back to the parent product category of the current product category (in the URL as source_id) where i’m filtering in.

    This is caused on line 79 of the class.yith-wcan-reset-navigation-widget.php where $term is retrieved with $term = get_term_by( 'term_taxonomy_id', $_GET['source_id'], $_GET['source_tax'] ); instead of $term = get_term_by( 'term_id', $_GET['source_id'], $_GET['source_tax'] );

    Any chance you can change this in a next update?

    Thanks!

    Plugin Author YITHEMES

    (@yithemes)

    Hi @dannykater,

    I didn’t understand which of this code it’s correct for you.

    term_taxonomy_id or term_id ?

    Let me know.
    Thanks.

    Have a nice day
    YITH

    @yithemes,

    term_id is correct for me. With term_taxonomy_id which is in your code at the moment it redirects to the parent category when you reset all filters.

    Thanks!

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    sure, term:id it’s the correct one.

    We fixed it in next release.

    Thanks

    YITH

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Reset Filter not working properly’ is closed to new replies.