Sort by option

merav tg asked on May 2, 2016 09:21

Hey

In many e-commerce web sites when searching a word in the search result page there is an option called “Sort by”, I have added a screen shot below of an existing web site. You can look at it live here. If I want to create this functionality, what web part you suggest I use?

Thank you

if photo doesnot open the link is here: https://www.jewlr.com/search?k=love

Image Text

Recent Answers


Felix Planjer answered on May 2, 2016 10:05

If you use Smart Search, you can use the Webpart 'Smart Search Filter', which also can be used to set ordering.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on May 2, 2016 10:25

Smart search result web parts already contain the Sort by property where you can set how to sort based on the query string parameter as you have it in your link -> ?k=love

1 votesVote for this answer Mark as a Correct answer

merav tg answered on May 2, 2016 12:25 (last edited on May 2, 2016 12:26)

Thank you both for the answers.

  1. Felix: When using Smart search filter web part: what values do you use in the values fields?

SKUName ASC;;name: A to Z

SKUName DESC;;name: Z to A

2.Jan: I want the user (when in the page)to have multiple sorting options that he can define on the search results.

I want the user to have the option to apply different sorting possibilities when he already has the results not when he arrives to the page.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on May 2, 2016 13:13

That's what I suggested. If you take a look at the link you sent you can see that the sort is part of the url (as a query string value -> &sort=high). That's what you can take and apply the sort. If you don't know how to add those query strings, you can use layout or Static text web part and implement is as standard links:

<a ...>Sort by xxx</a>

1 votesVote for this answer Mark as a Correct answer

merav tg answered on May 2, 2016 16:24

Hey,

can it be that the Smart search filter for sorting is not working due to a bug and coding is needed? Please see the link below. or maybe this bug was resolved in Kentico 9?

http://www.bizstream.com/blog/july/chaining-filters-in-kentico

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.