Support » Plugin: WOOF by Category » The filter is not cleaned after switching

  • Resolved vnzhlv

    (@vnzhlv)


    Hi again.
    I guess that filters must be cleaned after switching to another category, right? For example:
    This url I got when I chose category ‘cat 2’ and filter ‘gadget’:
    /?swoof=1&product_cat=cat-2&pa_gadget=laptop&paged=1
    This url I got when I chose category ‘cat 1’:
    /?swoof=1&pa_gadjet=laptop&paged=1&product_cat=cat-1
    And when I chose filter ‘color’:
    /?swoof=1&pa_gadjet=laptop&paged=1&product_cat=cat-1&pa_color=blue

    That’s why on the last step I get 0 search results in products and I should click reset.

    p.s: I still use 2017 theme and none extra plugins.

    • This topic was modified 1 year, 8 months ago by  vnzhlv.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author kaggdesign

    (@kaggdesign)

    Hi,

    It was resolved in version 1.3.2 of my plugin. Please visit the test site:

    http://test.kagg.eu/shop/?swoof=1&paged=1&product_cat=assumenda&pa_color=red

    Hmm.. On this test site it doesn’t work as well.
    Когда я выбираю другую категорию, то фильтры не обнуляются и не удаляются из строки браузера. Соотвественно результаты поиска при таких фильтрах могут быть нулевыми.

    This can be avoided by turning on dynamic recount (In this case plugin will not allow to switch to another category) But I need to be able to switch categories whenever I want and that the filters are removed at the same time.
    p.s: Form AJAX redrawing is Yes in widget options.

    By the way, there are some warnings/notices appear in debug mode. Seems they appear when some filters do not correspond to any product.
    Warning: Invalid argument supplied for foreach() in /…./woof-by-category/woof-by-category.php on line 598

    Plugin Author kaggdesign

    (@kaggdesign)

    I apologize for a late response. I hope to provide answers by the weekend.

    Meanwhile, could you make a verifiable example, so I can repeat it on my test site. Please describe what are you doing step by step and how results are differ from what do you expect.

    Thnak you.

    • This reply was modified 1 year, 8 months ago by  kaggdesign.

    I place the plugin in a widget form (Form AJAX redrawing – YES).
    Options of WOOF: https://prnt.sc/i25d3u
    There are 3 categories (Fridges, Phones, TVs) https://prnt.sc/i2517i
    Woof by Category Options: https://prnt.sc/i253ih
    I set up: cat: Phones -> color: Orange, then I change cat: Fridges -> brand: LG and submit form. I got: site.com/?swoof=1&pa_color=orange&product_cat=fridges&pa_brand=lg

    I expect that I will get this URL: site.com/?swoof=1&product_cat=fridges&pa_brand=lg
    But, as you can see, filter color doesn’t disappear.

    What I need is to create “widget” like on this site ao.com and I need WOOF plugin only on the main page.

    [ Please do not bump. ]

    • This reply was modified 1 year, 8 months ago by  vnzhlv.
    • This reply was modified 1 year, 8 months ago by  vnzhlv.

    Hello, did you have time to check it?

    Plugin Author kaggdesign

    (@kaggdesign)

    Hello, unfortunately not. WOOF code with ajax is much more complicated. I didn’t find enough time to analyze it.

    I hope will do it by next weekend…

    Plugin Author kaggdesign

    (@kaggdesign)

    Hello, I finally did it. New version 1.4 is uploaded. Please check.

    Hello, thank you! Just in time!
    I’ll check everything works fine.

    Plugin Author kaggdesign

    (@kaggdesign)

    I am glad that plugin satisfies to your needs. You can donate https://www.paypal.me/kagg or add the review https://wordpress.org/support/plugin/woof-by-category/reviews/#new-post

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘The filter is not cleaned after switching’ is closed to new replies.