Notifications
Clear all

Rating Bugs Report

10 Posts
4 Users
0 Likes
2,177 Views
nrichard
(@nrichard)
Active Member
Joined: 7 years ago
Posts: 11
Topic starter  

Hello

I would like to report a couple of bugs with rating (custom field).

1- When a new comment with rating is posted, WooCommerce rating is set without checking if we are on a product and WooCommerce star rating is enabled. Or maybe it should not be set at all, since I don't think wpDiscuz supports comments on products (you have a dedicated WooDiscuz plugin for that).
This is done with update_comment_meta($commentID, 'rating', $gRating); in your code.

2- When a comment is trashed (even permanently), set as spam or any other status change, the wpdiscuz_rating_count meta on related post is not updated properly. Which results in incorrect starring on the post.

Thanks


   
Quote
nrichard
(@nrichard)
Active Member
Joined: 7 years ago
Posts: 11
Topic starter  

And also, when a comment is deleted permanently, corresponding votes (table wp_wc_users_voted) and subscriptions (table wp_wc_comments_subscription) are not deleted.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4173
 

Thank you for letting us know, at the moment we're checking this issues.


   
ReplyQuote
nrichard
(@nrichard)
Active Member
Joined: 7 years ago
Posts: 11
Topic starter  

Hello

None of these issues seem to have been fixed in wpDiscuz 4.0.15, are you still working on it?

Thanks

 


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4173
 

Hi nrichard,

as you see we still working and updating wpDiscuz. These issues are also in our to-do list, please be patient.


   
ReplyQuote
(@goncalovieirafigueiredo)
New Member
Joined: 6 years ago
Posts: 1
 

Hello,

 

I have a similar issue: I'm allowing customers to edit their comments and ratings indefinitely.

I notice that when a client edits a rating, both the new and previous ratings are considered.

I want that only the new one is considered.

Is this possible?

Thanks,

Gonçalo


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5924
 

Hi  goncalovieirafigueiredo,

We've tested on our test websites, and didn't find such an issue.  

It seems you deactivated the wpDiscuz plugin, then deleted some comments and when you activated again the wpDiscuz such an issue takes place.

To make sure it is work, please create new post and test without any comments.


   
ReplyQuote
nrichard
(@nrichard)
Active Member
Joined: 7 years ago
Posts: 11
Topic starter  

Hello,

I checked on wpDiscuz 5.1.5 the issues I reported, they are fixed 🙂 except the first one:

1- When a new comment with rating is posted, WooCommerce rating is set without checking if we are on a product and WooCommerce star rating is enabled. Or maybe it should not be set at all, since I don't think wpDiscuz supports comments on products (you have a dedicated WooDiscuz plugin for that).
This is done with update_comment_meta($commentID, 'rating', $gRating); in your code.

Any update on that? Don't hesitate to ask if I am unclear 😉


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5924
 

Hi nrichard,

I recommend you

In this case you'll have two comment forms (as shown in the screenshot):

  1.  Default comment form for post, page, etc.
  2.  Comment form for product type, with rating fields. 
comment form

   
ReplyQuote
nrichard
(@nrichard)
Active Member
Joined: 7 years ago
Posts: 11
Topic starter  

Well I think I was unclear 😉

I want wpDiscuz on one custom post type only (w2dc_listing), with rating. I have WooCommerce installed, but don't want comments on it.

Presently I have one wpDiscuz form only, associated to post type w2dc_listing. Comments are disabled on WooCommerce (in WooCommerce settings).

When a user posts a comment and rates a w2dc_listing, wpDiscuz sets a WooCommerce rating on the post (whereas it's not even a Product!), and you end up with 2 ratings on comment.

ratings

That's the issue 😉

This post was modified 6 years ago by nrichard

   
ReplyQuote
Share:
Scroll to top