User wants to sort items on commerce categories/search results in web store by Product Reviews
Pre-requisite:
- Reference Product Review Records bundle must be installed on your account
To sort items by product reviews, do the following:
- Navigate to Commerce > Web Sites > Website List
- Select Edit the SCA website
- Under Search Index > Sort Fields, Add Product Reviews Rating (Custom) in the list
- Choose Save
- Go to Commerce > Web Sites > Configuration
- Select Web Site and Domain
- Choose Configure
- Under Search > Result Sorting, set the following values in a new row in Desktop, Laptop and Mobile section:
* ID = custitem_ns_pr_rating:asc
Note: will sort items by review rating in ascending order. To sort items in descending order, use “custitem_ns_pr_rating:desc”
* Name = name of the sort option that will be displayed on web store (such as Ratings, High to Low)
9. Choose Save