Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro drop down filter(auto count) not working properly?

Viewing 10 posts - 1 through 10 (of 21 total)
  • Ash
    #63836

    I’m trying to setup multiple dropdowns that filter out unavailable taxonomy term as you told me.
    Somehow everything that show up even if auto count is enabled.

    I want to make two dropdown that work like parent and child.
    Like this.
    Product Category -> Product Line
    I’d like to show only product lines that belongs to product category selected.

    Trevor Moderator
    #63840

    Can you show me the page with the search on (a live URL)?

    I am hoping that you have not used the same taxonomy field twice though, as this will not work. They must be separate taxonomies. This is covered in the documentation.

    Ash
    #63871
    This reply has been marked as private.
    Trevor Moderator
    #63956
    This reply has been marked as private.
    Ash
    #64111
    This reply has been marked as private.
    Ash
    #64123

    Also I do not want to show result when page loads(without query parameter)

    Trevor Moderator
    #64374

    Hi

    It all seems to work for me?

    As to not showing results when the page loads, you need to edit the results.php file, like this:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1726)->current_query();
    if (!$sf_current_query->is_filtered()) {
    // put anything you want instead of the results for the page loading without query parameter
    } else {
    // put the output part of the results.php here
    }
    Ash
    #64571

    Dropdown behavior I want:

    1.
    Category dropdown have to show all category at any situation

    2.
    Product dropdown have to be empty when the page loads.
    When select Category, it have to shows products belong to selected category.

    Thank you for the function to show blank result.

    Trevor Moderator
    #64573

    #1 I have changed it now to do this (I think, please check). #2 is what I would call dependent behavior. That is on our roadmap for the next major release, but that will not be for a while yet.

    Ash
    #64581

    Is it possible to make product dropdown empty when query parameter is empty using a hook?

Viewing 10 posts - 1 through 10 (of 21 total)

The topic ‘drop down filter(auto count) not working properly?’ is closed to new replies.