DUPLICATE: Any product filters do not work

Bricks Version: 1.6.2
Browser: Yandex 23.1.0.2947 (64-bit)
OS: Windows

Hi all!

If you set up a Custom Query to display products and output it using a template element, no filters want to work with that query. I have tested the default filters and several third party filter plugins. None of them can work with such a query :roll_eyes:

Can this be fixed? I really need filters for the site to work properly!


3 Likes

Hi Evgeniy,
Thanks so much for your report!

The template youā€™re building your query in is what kind of template?
Where are you outputting it (using the template element)?

In my tests, the products filter works fine alongside a template element (filtering e.g. the product category) on a regular page. I need some more detailed information on how to reproduce the issue, in the best case, step by step.

If you attach screenshots, it would be wonderful if you change the builder language to English beforehand. Unfortunately, Iā€™m out of the loop when it comes to Russianā€¦

Best regards,
timmse

  1. Iā€™ve created several custom taxonomies that are attached to the Product post type from WooCommerce. For example, there is a Brand taxonomy. Here I use the plugin Custom Post Type UI ā€” ŠŸŠ»Š°Š³ŠøŠ½ Š“Š»Ń WordPress | WordPress.org Š ŃƒŃŃŠŗŠøŠ¹

  2. On the term page of such a taxonomy, I display a list of WooCommerce products using dynamic Bricks data. I donā€™t use woocommerce-products element (by the way, filters donā€™t work with it either). I assemble the product card for the term manually using different elements.

  3. I put the product list into a template element and I end up displaying the template on the term pages. Here again, the filters donā€™t work in both cases, with and without the template element.

I end up with a template element on the term page with a list of products and filters for them. The filters donā€™t want to work correctly - all of the term pages have the same full list of all the values that are present.

Also, the page navigation doesnā€™t want to work properly on the term pages. I wrote about it here WAIT: Problems with pagination Maybe itā€™s one common problem with querying data on an custom taxonomy page.

Iā€™m guessing I had some glitch when updating Bricks, or thereā€™s a cache in the builder that needs to be reset. Or maybe itā€™s again about some constructor settings that I overlooked.

Hi Evgeniy,

Assuming I have understood the problem correctly, it sounds like a request we already have on the todo list: WIP: How to exclude filter options which are not available for the current WooCommerce category? - #2 by timmse

Currently, the filter shows all data - no matter what youā€™re looking at. It doesnā€™t respond to the term youā€™re currently viewing. As I said, the request is already on the to-do list and weā€™ll try to improve the filter as soon as possible.

Unfortunately, you havenā€™t given me any feedback on your pagination problem yet :thinking:

Best regards,
timmse

You got it right about the filters. Waiting for correction :slightly_smiling_face:

I will answer on pagination later. It creates a few extra empty pages at any setting.

Ok, Iā€™ll close this thread since there is already a thread and an existing task :+1: