SOLVED: Filters not working: filters become "undefined" and not filtering properly

I have a product archive template with a query loop:

There is also a simple checkbox filter (styled as buttons). The filters are populated by product tags.

When the page loads for the product category “Accessories”, everything is fine. Page: Accessories Archives | OceansEV

Problem #1:
If you check a checkbox, the filter is properly applied (other than problem #2 below) however the checkboxes become replaced by “Undefined” after filtering.

I also have a search filter, and after completing the keyword search, the products are properly filtered, but the checkboxes again become “Undefined”.

Before filtering:

After filtering (by product tag “Navy 3.0 Evo”:

Problem #2:
Six products have the tag “Navy 3.0 Evo”, and that count (6) is reflected in the checkbox filter for that tag. However, when performing the filter, the number of products filtered is 7. One product does NOT have the tag “Navy 3.0 Evo” so should not be part of the filter results.

There are other problems I’ve found as well, but they are essentially the same as these issues.

Just wanted to add: I’ve added a filter reset button (targeting the same query as everything else) and it does absolutely nothing when clicked.

Hi Eric,
Thanks so much for your report!

  1. Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

  2. We’re already aware of the issue: WIP: Search Filter: doesn't reset scope correctly when using product archive template - #2 by timmse

Best regards,
timmse

Dear @ainom ,

As per my email reply.

Issue 1: There is a bug when you are applying a condition on the filter element. Recorded in the bug tracker.

Issue 2: Please follow this thread for an update. WIP: Search Filter: doesn't reset scope correctly when using product archive template - #2 by timmse

Regards,
Jenn

Hi Eric,

We’ve fixed this issue in Bricks 1.9.8 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on a production or live website. It is only meant for testing in a local or staging environment.