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
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.
Thank you for letting us know, at the moment we're checking this issues.
Hello
None of these issues seem to have been fixed in wpDiscuz 4.0.15, are you still working on it?
Thanks
Hi nrichard,
as you see we still working and updating wpDiscuz. These issues are also in our to-do list, please be patient.
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
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.
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 😉
Hi nrichard,
I recommend you
- create a new form special for product type
- add a new rating filed
In this case you'll have two comment forms (as shown in the screenshot):
- Default comment form for post, page, etc.
- Comment form for product type, with rating fields.
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.
That's the issue 😉