Sorting filtered results

Forums › Forums › Search & Filter Pro › Sorting filtered results

Viewing 6 posts – 1 through 6 (of 6 total)
  • Anonymous
    #39449

    Hi there, I can not find in the documentation. Can you tell me wether it’s possible to let the website visiter sort the filtered results?
    I can’t find an example like that on this page:
    http://docs.designsandcode.com/search-filter/#examples

    But this pages suggests that it’s possible:
    http://demo.designsandcode.com/sfpro-woo-mystile/product-search/

    But maybe that’s only for woocommerce?

    Hope tot hear from you,

    Thanks

    Ross Moderator
    #39529

    Hi Han

    The first link you put was to the docs for the free version of the plugin.

    Pro docs are here:

    https://www.designsandcode.com/documentation/search-filter-pro/getting-started/

    And for sort order ๐Ÿ™‚ :

    https://www.designsandcode.com/documentation/search-filter-pro/getting-started/adding-new-fields/

    Hope that helps

    Anonymous
    #39549

    Hi Ross,

    thank you for your response.
    Do I understand correctly that the sort function is only available in the Pro function?

    If so, than I have 2 follow-up questions.

    1) Can I switch easily from the free to the pro version without rebuilding my filter setup?

    2) I have coded the filter function in the sidebar as php do_shortcode function now. Something like this

    <?php echo do_shortcode(‘[searchandfilter
    fields=”fase,domein,hulpvraag,bron,documentsoort”
    headings=”Fase,Domein,Hulpvraag,Bron,Documentsoort”
    types=”checkbox,checkbox,checkbox,checkbox,checkbox”
    submit_label=”Filter selectie”
    ]’); ?>

    But I cannot find an example how to add the sort option to such a shortcode.
    I would like to make sure that it’s possible before I start moving over to the PRO version.

    Hope to hear from you… Thanks

    Ross Moderator
    #40127

    Hey Han

    Yes you are correct the sort function is only available in Pro ๐Ÿ™‚

    **EDIT – I forgot, yes free does have an “order by” option (http://docs.designsandcode.com/search-filter/#options)

    RE your questions:

    1) You can disabled free, work on pro, disable pro and work on free no problem. The only issue is right now both plugins cannot be active at the same time – they do not affect each other so feel free to modify one without worry for the other.

    2) Pro does not take shortcode parameters like this, Pro has a drag and drop UI (in the admin menu) to create all those parameters – when complete, all you need is the ID (provided) so you would use it like:

    [searchandfilter id='123456']

    Thanks

    Anonymous
    #40540

    Thanks for your response.
    The order_by in the free version though is not a select field like in the Pro version as far as I can tell.
    By now the client has decided to skip the sorting functionality.
    But it’s good to know how it works for another time…

    Thank you!

    Ross Moderator
    #40556

    No worries ๐Ÿ™‚ – closing this topic

Viewing 6 posts – 1 through 6 (of 6 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.