Developer forum

Forum » Ecommerce - Standard features » Product Rating Bug

Product Rating Bug

António Ramos
Reply

Hi guys,

I think that found a bug with the product rating when is more that one comment in the product. Screencast at: http://screencast.com/t/HNAcrmPYnpxq

DW version: 8.7.1.5

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Antonio

Cannot reproduce (see my dumps) - what browser are you using (maybe a js error?).

I need a link to the solution so I can check it out.

BR Nicolai

Capture.PNG Capture1.PNG
 
António Ramos
Reply

Hi Nicolai,

I'm using Google Chrome (version 48) and the solution is http://thecount.dw-demo.com/

Thanks,

António Ramos

 
Kristian Kirkholt
Reply

Hi António

I have made a test on your site with Chrome version 48.0.25 but are not able to reproduce the problem on your site !

Video: http://screencast.com/t/1Zhm65tJ

So could you empty your BrowserCache and try again. If problem still occurs the please drop a case to Support

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
António Ramos
Reply

Hi Kristian,

Thank you for your feedback. I can add it too... The problem here (I can't confirm in your video) are the values saved at database.

I checked your new product at the database (see attach) and I can confirm that the problem persists. The values are saved with zero.

Best regards,

António Ramos

productComments.png
 
Nicolai Høeg Pedersen
Reply

Hi António

It works - see my dumps. Do you by any chance have a script running that re-imports or something that could reset the fields?

NP

Capture.PNG Capture1.PNG
 
Nicolai Høeg Pedersen
Reply

I discovered that you include Newrelic in the backend, see dump.

My PC blocks it because of uBlock, so that might be that one messing up some stuff?

Capture.PNG
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hmmm, that must be me ;-) I added New Relic to our server. I'll see if I can disable it for this site. António: send me an email if you want to discuss this further.

Imar

 
Oleg Rodionov
Reply

Hi all,

New TFS 21052 has been created against the bug, thanks.

BR, Oleg QA

 
António Ramos
Reply

Hi Oleg and Nicolai,

Thanks for your feedback. 

Best regards,

António Ramos

 
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi António

The problem TFS#21052 "Adding comments on a product and then saving it, resets the comments and ratings count on the product database"  has now been fixed in version 8.8.0.1

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 1
 
António Ramos
Reply

Hi Kristian,

I run a few tests and when we insert a new comment the productRating is not changed (see screencast).

http://screencast.com/t/Hx5AkJCff

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

I cannot reproduce this - not with pressing save and close either.

What happens if you do it on a product with 2 comments? (You did upgrade to 8.8.0.1, right?)

(99*5 + 1*1)/100 = 4,96 and it is rounded to one decimal giving 5,0 - maybe that is your issue.

BR Nicolai

 
António Ramos
Reply

Hi Nicolai,

Yes it's with 8.8.0.1.

Even with a product with two comments the issue is the same. See screencast please http://screencast.com/t/zlSbxtfXe

Best regards,

António Ramos

 
António Ramos
Reply

It looks that the video is cut at the beginning you can see if you forward a little bit the video that the product have only two comments (one active and other not) and the commentCount is always showing 2 (it shouldn't have one?). You see also that even if we add a new comment the productRating is not changed.

BR,

António Ramos

 
Nicolai Høeg Pedersen
Reply

I need a URL. Cannot reproduce.

 
António Ramos
Reply

thecount.dw-demo.com

 
Nicolai Høeg Pedersen
Reply

If rating = 0 - it is not part of the rating. 0 means it is just a comment.

So try to make a real life test. 2 active comments with, say 3 and 4 in rating and a comment in each of them.

 
Nicolai Høeg Pedersen
Reply

This is my result, see dump

Capture.PNG Capture1.PNG
 
António Ramos
Reply

Hi Nicolai,

From what i see in your dumps we can assume that the calculation of the productCommentCount and the ProductRating are using the inactive comments? I dont think that is the right behaviour.

Best regards,

António Ramos

 

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Yes, that is right.

I've made a feature request for 8.8.1 to only include the active ones.

Votes for this answer: 1

 

You must be logged in to post in the forum