Forums Forums Search & Filter Pro Strange form behaviour

Tagged: 

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #250888

    Hi,

    I have a form that some of its fields work as expected but the others won’t filter the results. Choosing an option does change the products count on other fields but the products list remain the same.
    Example:
    http://185.127.16.178/~suntiago/product-category/mounting_systems/
    “Type” field works as expected, “Surface” field doesn’t.
    Any idea?
    Thanks,
    Roy

    Trevor
    #250900

    The first problem that I can see appears to be the choice of Display Results method, which is set to ‘Custom’, and yet this appears to be a WooCommerce search?

    Anonymous
    #250904

    Yes, this is because I have a different search form for every WooCommerce category. And also, this behaviour remains the same even if I change the Display Results method to ‘WooCommerce Shop’.

    Trevor
    #250918
    This reply has been marked as private.
    Anonymous
    #250946
    This reply has been marked as private.
    Trevor
    #250993

    I am thinking that the forms are conflicting with each other, as they are all applied to Products. So, a field may not work because that field may be missing on another form.

    It would be far better to have one form with all that you need on, set to WooCommerce mode, and use CSS to hide/show fields on different pages. The body tag on WooCommerce has a number of class names that you can use to target such custom CSS.

    Anonymous
    #251021

    Thanks, I’ll give it a try.

    Trevor
    #251029

    OK. I will wait to hear from you.

    Anonymous
    #251056

    Hi, sorry but this isn’t working. Any filter I apply gives me 0 results. It seems like what causing this problem are the Range – Slider fields.

    Trevor
    #251161

    You are correct. When you use sliders in a form, as soon as the form is submitted all range sliders are added. If post has no value set for any (one or more) of the slider fields, it will automatically disappear from the results.

    We plan to address this issue with a workaround in V3 (due in a few months), but the quick fix is to make sure that every slider field value on each post has a value, maybe 0 if it is not applicable.

    I think the gaps may be on the capacity_kwh field entries.

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