Can anyone advice me how to configure sorting in the front end base on backend sorting products configuration
Developer forum
E-mail notifications
Sorting Products using backend SORT PRODUCTS function
Replies
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
Working correctly
thanks
Dear Sir,
The product sorting seems not working on the single level product group. The products under Babies/Tops sorted correctly on the frontpage as I configured in the backend but the same sets of products under NEW IN group was not sorted at all even I checked the setting that you had mentioned. Could you please suggest on that?
Thanks,
Yoon
Hi Yoon
We need a url to your solution to see it. Then we can check your setup. Have you tried go into the sort of the "New in" group sort, and save the sorting. And then rebuild the index?
Dear Sir,
Here is the url of our solution:
url >> http://uat.kids21online.com/
Yes, I did saved the sorting and rebuild the index more than once but still not effecting on the frontpage.
Thanks,
Yoon
Hi Yoon
Thanks.
The reason it does not work is that you are not using an ecommerce group to navigate the "New in". You use a page with a specific query and hard coded paramter:
So on this page you are not in the context of a group navigation, but only a page navigation. So in your setup http://uat.kids21online.com/new-in translates into Default.aspx?ID=12
If you were using the ecommerce navigation, http://uat.kids21online.com/new-in would translate into /Default.aspx?ID=12&GroupID=GROUP66 - and this will trigger the right sorting.
You can see the right result here: http://uat.kids21online.com/new-in?GroupID=GROUP66
So because of how you have chosen to implement the navigation (which I do not think is the best way), you cannot use that checkbox.
The way that checkbox works is that there are some hidden index fields with the sort value for each group that will be used automatically when that checkbox is set. But because of your implementation, it will not work.
So you have 2 options - change the implementation so you only have one product catalog page and use ecommerce navigation or add an extra field to the index.
Adding a field to the index:
THE FIELD SHOULD NOT BE STRING BUT INT! (mistake on screendump)
And the use it as the sort in the paragraph:
Dear Sir,
Thank you very much for your quick reply and the solutions. We will try it out.
Thanks,
Yoon
Dear Sir,
I want to check here for the sorting for all the combination Groups (Top Level + Sub Level).
Eg, we have 6 products under Top Group (BOYS) to show at top of the product lists in the frontend. And then, follow sort the remaining products from sub-level groups.
Can it be sorted by the backend sort?
Regards,
Nay Chi
Dear DK Team,
Any idea on the above?
Regards,
Nay Chi
You must be logged in to post in the forum