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
Developer forum
E-mail notifications
SortBy Ratings
Posted on 11/03/2011 14:48:01
Replies
Posted on 14/03/2011 06:40:51
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.
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.
Posted on 14/03/2011 08:06:36
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
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
Posted on 14/03/2011 09:28:58
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
If yes how ?
Otherwise i need to code a extender sorting on the rating
Posted on 14/03/2011 11:28:18
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
Posted on 14/03/2011 12:39:27
Hi Mikkel
I've added it as an option on the paragraph settings.
Will be out with next hotfix.
I've added it as an option on the paragraph settings.
Will be out with next hotfix.
Posted on 14/03/2011 13:22:16
Sounds good! Thanks
You must be logged in to post in the forum