Developer forum

Forum » Development » SortBy Ratings

SortBy Ratings


Reply
Hello.

Just wanted to know if we can sort a product list by its ratings ? I can't select that option in the paragraph settings..

Thanks

Replies

 
Reply
Hi, there is no standard rating functionality.
As solution you can do next:
1. Add product custom field to store rating.
2. Fill the rating somehow. You can use product template extender (related post: http://engage.dynamicweb-cms.com/Show-Article-361.aspx?PID=2472&ArticleID=160 ) or Notifications.eCommerce.Product.BeforeRender notification.
3. Use Notifications.eCommerce.ProductList.BeforePaging notification to resort products according the rating.
 
Reply
Sorry, release 7.2 already contains rating and comments feature
To start use it you need to install ecom Power Pack
http://manual.dynamicweb-cms.com/Dynamicweb-eCommerce/Modules/Power-Pack/emProduct-settings/em.aspx
 
Reply
 Sorry, should had wrote that im working with the 7.2 + power pack. My questions still stands though - sorting on the rating - is it standard or not?

If yes how ?

Otherwise i need to code a extender sorting on the rating
 
Reply

Hi,

There is no way you can sort by rating in standard search AFAIK

If you use the old ecom search, you can change the sorting by implementing a notificationsubscriber on Dynamicweb.Notifications.eCommerce.ProductList.BeforePaging and sort the collection.

If you are using the new index search, i think you need to implement a custom filter - http://volpav.wordpress.com/2010/12/07/new-search-in-dynamicweb-developing-your-own-filters/

However, sort by rating should be a standard feature IMO.

/Morten
 
Nicolai Høeg Pedersen
Reply
Hi Mikkel

I've added it as an option on the paragraph settings.

Will be out with next hotfix.
 
Reply
 Sounds good! Thanks

 

You must be logged in to post in the forum