Support » Plugin: YITH WooCommerce Ajax Product Filter » Suggestion: Hiding options without products

  • Resolved denravonska

    (@denravonska)


    Would it be possible to add an option to hide options that have no products remaining after filtering? For example, suppose I have 3 products:

    – One red
    – One black
    – One red and blue

    If I select ‘Red’ in my color filter I would like the ‘black’ option to disappear since there are no products with that combination. Today it’s still there but disabled, something which can be hard to see depending on the theme.

    I have made a modification to the plugin to do this by default but that would mean future maintenance. It could be a good option to include in the stock plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,

    sure! Go in Appearance > Widgets and look that Ajax Product filter query type is set to AND, look here: Query Type: AND

    If you set this to AND and not works probably you have a wrong configuration of Frontend args or a register_sidebar issue in your theme.
    To know how to set Frontend args, please read this posts: https://goo.gl/uaPfMA
    If this not works please check if register_sidebar (in your theme) was called correctly, look here: https://goo.gl/62dgrZ

    Let me know.
    Have a nice day
    YITH

    Thread Starter denravonska

    (@denravonska)

    That is super weird. Maybe we had it set to OR back when I couldn’t get it working. I tried to hide the disabled options using stylesheets before I modified the source. Seems like it wasn’t necessary at all. Perfect, thanks! 😀

    Plugin Author YITHEMES

    (@yithemes)

    Hi @denravonska,

    You’re welcome!
    I remember you that you find all plugin settings in ajx product filter official documentation

    If you like our plugins and our support, please give us a 5-star review! It’s important for us.

    Have a nice day
    YITH

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: Hiding options without products’ is closed to new replies.