This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Exclude Product Cats from search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Exclude Product Cats from search

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #27769
    aguawebs57aguawebs57
    Participant

    Hey – how are you?

    What settings do I use to exclude a woocommerce product category from displaying the search results?

    I’ve gone to: Advanced Options -> Exclude Results and added the categories I would like to exclude – which excludes the Products/Posts from these categories – which is great. What I want to do now is remove:

    a) The actual Category
    b) The autocomplete product name

    To explain, these are categories/products for wholesale customers (set by user role), the products and categories need to be hidden from normal users when using the site search. So what I want to do is remove the selected categories, their products, their autocomplete from the front end search.

    How do I do this?

    The example category I have used is:

    Sassi Private Label

    Thanks

    Tye

    #27773
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Tye,

    I recommend setting the autocomplete to “Post titles” only, that will suggest product titles respecting the exclusions: https://i.imgur.com/fCCKnzW.png

    If you wish to exclude certain taxonomy terms from results (as results), then you can do it here: https://i.imgur.com/ThzicFh.png
    I checked your back-end configuration, and in your exact case, you have to enter these IDs there:

    246,274,1073,1091,1213,1179,1216,1189,1048,989,979,1079,1108,257,254,1252,1240,208,44,51,1241

    #27775
    aguawebs57aguawebs57
    Participant

    You cannot access this content.

    #27776
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #27777
    aguawebs57aguawebs57
    Participant

    You cannot access this content.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Exclude Product Cats from search’ is closed to new replies.