Developer forum

Forum » Ecommerce - Standard features » Product overview user defined sorting

Product overview user defined sorting

John Broers
Reply

Hi,

We use a product catalog app to show product results from a query. We want to display the products how the are sorted in DynamicWeb. When we visit a subgroup the sorting goes right, but how can set a user defined sorting on the main page when there is no group selected?

In the product catalog app i set the sort by option to 'SortByGroupThenProduct' ASC, and checked the checkbox 'Use group sort in group context'. (DW 9.9.7).

 

BR, 

John


Replies

 
Nicolai Pedersen
Reply

Hi John

When no group is selected, the products comes in the order set on the query.

If you want to sort the list of products that are in different groups, you can do one of 2 things

  1. Create a new group, i.e. in the root, and add all the products to that. Then you can sort the products and sort by that specific field in the query. This will not work well for catalogs with many products
  2. Create a custom field for holding a sorting value and use that on the index to sort. Again, this is not very suitable for many products.

An alternative is to sort by PrimaryGroup sort. Then all products that are number one in each subgroup, will sort on top, then the second etc.

One more option is to create a custom field, i.e. a checkbox, called "highlight product" or similar.

It could have a value of i.e. 1 and then products that has that set, can bubble to top by sorting on that field in the query.

BR Nicolai

 

You must be logged in to post in the forum