Reorder based on selection

Forums › Forums › Search & Filter Pro › Reorder based on selection

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #260996

    Hi there!
    Is there any way to change the order of the results page based in a term selected option from a select field? Any conditional code or option to achieve this?

    Hope to hear from you as soon as possible.
    Thank you. All best,

    Trevor
    #261101

    It might be possible, but it would involve some tricky coding on your part, so you would need to be comfortable with coding in PHP. You would need use this filter to re-order the terms:

    https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object

    Anonymous
    #261158
    This reply has been marked as private.
    Trevor
    #261160

    There ARE some shared snippets on the forum. Try this search:

    https://support.searchandfilter.com/forums/search/sf_input_object_pre+function+order/

    If you produce something, but it doesn’t quite work, by all means share the code for us to take a look at. Custom coding doesn’t really fall within the scope of our support, but we will help where we can.

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.