Skip Navigation

[Resolved] Parametric search multi-select not working as expected

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the users multiselect field for their taxonomy in their Views parametric search was not working correctly.

Solution:

The issue was that the user was using an old version of views and updating to the latest available version was able to fix this issue for the user.

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 3 voices.

Last updated by maxineM 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#954385
Screen Shot 2018-07-24 at 12.35.46 PM.png

Im trying to search site products basic on multiple selected categories.
Current multi select is:
[wpv-control-post-taxonomy taxonomy="product_cat" type="multi-select" url_param="wpv-product_cat" class="product_cat_search"]

Displaying:

All New Discovery
Discovery Sport
Range rover

If the user selects Range rover and Discovery sport then all products that are in those categories should appear, currently it only shows Range rover products.

I found this Forum link and erratum but I don't understand how to implement this on my code.
https://toolset.com/forums/topic/parametric-search-multi-select-not-working/
https://toolset.com/errata/multiselect-search-filter-is-created-with-the-wrong-comparison-mode/

#954401

You should be able to head to the View in question and edit the Query Filter section.

Change the filter there, so it says:
The field XXX is a string that is IN the following: URL parameter YYY.

Note that IN
This is what you need to change in the current filter settings.
Right now probably it says equal to, or even == or similar.

Please refer to the "Query Filter" section in that View.

Thanks!

#954414
Screen Shot 2018-07-24 at 1.45.55 PM.png

Thank you for the Information but its a taxonomy filter so it doesnt give me the option to make it a string, is there another way?

#954544

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

Could you allow me to have a link to the site to take a look at the filters?

Thanks,
Shane

#954588
Screen Shot 2018-07-24 at 6.08.05 PM.png

Hi,
Sure thing, hidden link its at the bottom under hiddenInput text.
I also noticed that when use multiple filter queries that the results only listens to one.I have tried to change the comparison to and as well as or with no luck.

A search example would would, a New Range Rover, 2.0, white that is in between the price of 100 and 250.
I have included a screen grab of my filter queries as well. let me know if it would be easier to give you access to the site.

#955614

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

I was able to see the issue, Would you mind allowing me to have admin access to the website so that I can have a closer look at the view settings on the backend?

Thanks,
Shane

#956544

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-07-26 at 9.14.25 AM.png

Hi Maxine,

Could you try setting the filters to an AND instead of OR because it doesn't filter like you would expect with an OR Comparison.

Please let me know if this helps.

Thanks,
Shane

#956553

Unfortunately this didn't work I still cant search for products from multiple categories.

#956682

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

Could you let me know by screenshot which exact filter has the issue because I see 2 vehicle filters ?

Thanks,
Shane

#957099
Screen Shot 2018-07-27 at 7.38.22 AM.png

My category multiple select is not working at all. I need to be able to file by tag, category, price and attributes.
Current I can only filter by one.

#957347

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

I see the issue clearly, however I noticed that you're running outdated versions of our plugins.

Could you update the plugins to their latest versions so we can check it again ?

Thanks,
Shane

#957899

I have Updated all the plugins, no change to results

#1014198

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

I checked the filters and they are working now ?

I selected 3 range rovers and all 3 were found in the search.

Could you try again and let me know.

Thanks,
Shane

#1069100

Thank you It seems to be working now!

#1069326

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Maxine,

You can confirm that this has been resolved correct?

If so you can proceed to marking this ticket as resolved.

Thanks,
Shane