Quantcast
Viewing all articles
Browse latest Browse all 9076

Default Sorting Order of Products in category - Using the CMS UI

On our product list pages the products returned seem to be in the order they were published.

Our normal sortng seems to work fine. 

case SortingType.Price:
search = search.OrderBy(p => p.SearchPrice());
break;
case SortingType.PriceReverse:
search = search.OrderByDescending(p => p.SearchPrice());
break;
case SortingType.TopRated:
search = search.OrderByDescending(p => p.AverageRating)
.ThenByDescending(p => p.ReviewCount);

We need the products to be returned in the order they appear in the CMS editor so that the content editors can visuall see and sort the products.

EPiServer Commerce Framework 
Version: 11.8 (build: 2)

Kind Regards

Sandeep


Viewing all articles
Browse latest Browse all 9076

Trending Articles