Search Filters

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16609
    boconpro
    boconpro
    Participant

    Hello,

    first of all: great plugin! Love it!

    We have setup a search for our website including a category/terms selector. Here the user can choose product categories.
    All categories are enabled by default. Deactivating a category doesn’t change anything, the deactivated category is still searched and results from the category are being displayed.

    Do you have an idea what might cause the problem?
    All categories used in the filter are parent categories, the products themselves are located in sub-categories. I thought that by deactivating the parent category the sub categories are also deactivated. Is this so or might this be the reason?

    Thanks for your help!

    Regards
    Thomas

    #16615
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Thomas,

    I was trying to check the URL provided, but I’m getting a ‘503 service unavailable’ error at the moment.

    I might have an idea though. Are the products marked with the parent categories as well, or only with the sub-categories?
    If only the sub-categories, then it explains it, as in that case there is no direct connection between the unchecked term and the product. Let me know if this is the case, I might be able to construct a custom code solution to exclude the parent categories as well.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #16617
    boconpro
    boconpro
    Participant

    Hello Ernest,

    thanks for the fast reply!

    I have checked, the products are marked with the sub-category only. That explains it.

    Will a customization be complicated? If so, we can also adjust our products.

    Regards
    Thomas

    #16619
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Thomas,

    It should not be too difficult I think. I have quickly made a custom API code that changes the search parameters before the search, and if finds parent terms excluded, it excludes child trems as well.

    Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

    Let me know if you need help with this.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #16621
    boconpro
    boconpro
    Participant

    Hello Ernest,

    looks like its working perfectly!
    Thanks for your fast help, really appreciate it!

    Regards
    Thomas

    #16622
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.