Developer forum

Forum » Ecommerce - Standard features » Sorting of related products list by attribute value

Sorting of related products list by attribute value

Davy Capiau
Reply

Hi,

We want to sort variants in the related products list. We can do it via relation groups, but that's too much overhead. Is there a way to do this via an attribute sort value or even a drag and drop manual sorting?

 


Replies

 
Igor Ivanov Dynamicweb Employee
Igor Ivanov
Reply
This post has been marked as an answer

Hi Davy,

You can sort the related products using sorting in the Lucene query

https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/repositories/queries.html#sorting

If you are using the same query for the related products as for the product list, this would apply to both results

In that case I recommend creating a dedicated query just for the related products and add the sorting there

Votes for this answer: 1

 

You must be logged in to post in the forum