• Hi there

    I use the plugin for a custom post type (car). On the car archive page I implemented the filter for make, model, fuel and transmission. I also enabled the conditional dropdown values. The thing is, I would like the dropdown for car make to show all car makes at all times in the dropdown, while for the other filters I would love to use the conditional dropdown values and hide all the values that are not present.
    This is because when a visitor is looking for Audis and enables the filter, there is only Audio shown in the car makes. So if he decides to to look for another car make, there is no othen choice but Audi in the dropdown. Of course there is a second option “All car makes” in the dropodown as well, when clicking on it the other car makes reappear, but its not intuitive.

    Is that somehow achievable, to disable the conditional dropdown values for one filter only? Thanks for any hints.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nenosw

    (@nenosw)

    OK. I just found a solution by myself. Its not a great solution, but it works. In the function ‘function conditional_terms_ajax_new( el )’ in ‘beatiful-taxonomy-filters-public.js’, I added following condition on line 213:

    if ( taxonomy === ‘make’ ) {return;}

    Thanks and cheers

    Thread Starter nenosw

    (@nenosw)

    I noticed that in this way, the empty car makes are still shown. Any ideas on how to avoid that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with Conditional dropdown values’ is closed to new replies.