Developer forum

Forum » Ecommerce - Standard features » Sortby
Lars Pham
Reply

Hi guys.. 

In a productlist-view generated by a filter, is it then possible to sort the results by the User Defined sorting that's defined in the backend? 

The url generated is something like this: /Produkter.aspx?menu=GROUP1&ProductType=GROUP211

I know of these URL-parameters that I can use: http://manual.dynamicweb-cms.com/Default.aspx?ID=7347

But is there any secret way to sort them by the User Defined sorting via the url? Would come in handy :) 

 

Also I've set the Paragraph Module to Sort by "User defined" (brugerdefineret), but it seems to ignore this setting when filtering the products.

 

Thanks!


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Lars

If you enable the "Enable optimized product retrieval" checkbox on the paragraph in 8.5+, the index will return a list of autoids and the normal database data will be used for retrieving the ecommerce data. Then you can use the normal syntax, SortBy=Sort&SortOrder=Desc.

Nicolai

 
Lars Pham
Reply

Hi again,

I'm running version 8.5.1.11 and the "Aktivér optimeret hentning af produkter" setting is enabled and still no luck though. 

My url looks like this: /da-DK/Forside/Produkter.aspx?menu=GROUP1&SortBy=Sort&SortOrder=Asc

The products are manually sorted in ecom in the category with the id "GROUP1". 

 
Morten Bengtson
Reply
This post has been marked as an answer

Hi Lars,

Try to use UserDefined as the value for SortBy. I'm not sure, but you might need to provide a GroupID parameter as well instead of "menu".

/da-DK/Forside/Produkter.aspx?GroupID=GROUP1&SortBy=UserDefined&SortOrder=Asc

Votes for this answer: 1
 
Lars Pham
Reply

Thanks, it worked by using "UserDefined" as the SortBy parameter as well as providing a GroupId :)

 

You must be logged in to post in the forum