Developer forum

Forum » Ecommerce - Standard features » Sorting Products using backend SORT PRODUCTS function

Sorting Products using backend SORT PRODUCTS function

Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Can anyone advice me how to configure sorting in the front end base on backend sorting products configuration


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Shiwanka

It depends... If you are using the index, then on the paragraph settings you can set this checkbox "Use group sort in group context":

Remember that showing a list a products is basically a search. It can be products mathing the search term, i.e.  "bike" that holds products from many groups. 

Also products can be in many groups - and each relation has its own sorting.

So in the situation above, when you use the index, and the index has a parameter "GroupID" and "Groupid=group1" (or /products/groupname when using friendly urls) is in the querystring, the index query will add a sort that uses the sort value for that specific group. You can see the result by adding "&debug=true and locate the query used for the search.

BR Nicolai

Votes for this answer: 1
 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Working correctly

thanks

 

You must be logged in to post in the forum