Skip Navigation

[Resolved] Filtering out free products from site wide search results issue

This support ticket is created 6 years, 2 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1098671
EYS Searches.png
without search critera.png
with search criteria.png

Hi,

As per the screenshot 'searches', we have multiple view search queries used in different places on the site.

The requirement is to not show free resources in any of the search results. Which for example is happening currently now using the main search bar in the top header. If you type 'free' there items are returned.

Now without an issue what we have been able to do is remove free items from the search used here
hidden link

This was done by going to the 6644 Resources: Search view and using the search query option to exclude Product categories which free items are held against.

Cool, no problems with that part.

However, we then went to repeat that exercise for each of the search views. Starting with 1760 Generic: Search

But once within that view, unlike the one above there is no search query option, meaning that the same steps cannot be completed.

Pretty much all of the other views appear to operate in this way.

So the issue we are trying to solve is, how can these views be updated to also exclude the free items, in regards to at the moment they do not seem to have the search query option within them? (See 2nd screen shot).

Many thanks.

#1099289

Hello,

You can enable the "Query Filter" section by this:
Edit the view as your screenshot:
hidden link

In the top right of the page, click the link "Screen Options", enable the option "Query Filter", and test again.