• Resolved jpegtobbe

    (@jpegtobbe)


    Seams that nothing happens when using operator AND on a checkbox filter. When checking one or more checkboxes in that filter same amount of results are shown.

    In my case:
    do_shortcode(‘[br_filters attribute=pa_stod-for type=checkbox operator=and title=”St?d f?r”]’);

    • This topic was modified 7 years, 9 months ago by jpegtobbe.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hi @jpegtobbe,

    Please provide your site URL to check the problem.

    Regards,
    Oleg

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Thank you Oleg, that would be great!

    But i have a problem. The site is a live one, and i run the filter with the default setting right now (that i guess is ‘OR’) because then the filter works.

    I wish i had a dev site that you could look at, but sorry i dont.

    Maybe i can change it temporarily to use ‘AND’ at a sirten time you can look. But then you and i have to be synced so the site doesnt break for a too long time.

    Best regards,
    Tobias

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Hi Oleg!

    I have managed to make a dev environment.

    If you check here: https://demo.avitel.se/produkt-kategori/headset/

    The first checkbox group is an OR “Ljudutg?ngsl?ge”, that works.
    When you load the page there are 203 articles. When clicking on the first OR checkbox “Stereo” the filter changes to 89 articles. Everything working with OR.

    If you start with no checkboxes checked, you again have 203 articles. If you then click something in the next checkbox group that is an AND group, the number of filtered articles are still 203.

    do_shortcode(‘[br_filters attribute=pa_ljudutgangslage type=checkbox title=”Ljudutg?ngsl?ge”]’);
    do_shortcode(‘[br_filters attribute=pa_stod-for type=checkbox operator=and title=”St?d f?r”]’);

    Here you have an screenshot of the settings: https://www.dropbox.com/s/cnfdqcw7jjt3t1y/product_filter_and.png?dl=0

    Best regards,
    Tobias

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Any progress on this one? ??

    / Tobias

    Thread Starter jpegtobbe

    (@jpegtobbe)

    For anyone that get this problem. I wrote “and” instead of the correct “AND”. Problem solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Operator AND not working’ is closed to new replies.