Hi hi,
I was testing the plugin and noticed that when the plugin is activated it shows a wrong Review count. This is caused by the fact that it uses get_comments() function without passing arguments and it looks like it calculates the rating and review count for all approved and unapproved.
I believe that the plugin must always use only approved comments otherwise we show wrong data.
I patched it locally like this:
$args = array('status'=>'approve');
get_comments($args);
This works nicely and shows correct information.
I hope that you can release a new version with this patch.
Best regards,
Ali Nebi
The plugin serves a useful function in multilingual WooCommerce stores.
However, the sorting of the comments needs a tweak:
Current page language reviews/comments should be shown on top, sorted by rating (highest first) and date (latest first).
Then all other languages reviews/comments should be shown, sorted by rating (highest first) and date (latest first).
Something like
ORDER BY language_id = current_language DESC, language_id ASC, rating DESC, comment_date DESC
Has this plugin been abandoned?
]]>error in this module
on the blog page in the list of posts shows the same number of comments (error)
Hello, I have ana issue is that all the rating stars are disapeared from the products page.
Many thanks
Can you please make it such that it would only modify visibility of Product -related comments? now other things get messed up, because languages are used in other type of comments too..
]]>Hi are you planning on updating this plugin? Its getting dangerously old
]]>This plugin does not work.
It actually gives a fatal error.
I am using Divi.
Thanks for the work you’ve put in to this great little plugin. One minor suggestion though:
Would you be willing to move the menu item from top level under Settings? IMHO this functionality is not something you’d need to be constantly accessing and it adds unnecessary clutter to already pretty crowded admin menu.
]]>Hello,
I Just wanna say thanks for your hard work, picking up the slack for WPML and making WordPress a better platform.
I just installed this plugin on my site but I don’t see the review in the alternate language? Am I missing something?
Cheers,
Itai
]]>Whenever I add a comment/reply to a review the following error message pops up in various areas of the page ( I think it appears everywhere after the pre_get_comments
action hook):
Warning: A non-numeric value encountered in /app/public/wp-content/plugins/multilingual-comments/public/class-multilingual-comments-public.php on line 204
Besides that small issue the plugin is great and exactly serves our needs, which is why I really hope there’s a quick solution or fix to this!
Best Regards
]]>How would I fix this? thank you
Warning: Division by zero in /home/funique0/public_html/wp-content/plugins/multilingual-comments/public/class-multilingual-comments-public.php on line 203
Hi,
I have found a division by 0 warning message in the debug log:
[10-Jan-2018 10:56:46 UTC] PHP Warning: Division by zero in /xxx/wp-content/plugins/multilingual-comments/public/class-multilingual-comments-public.php on line 203
To fix that, replace line 203 with:
if ( count($comments) !== 0) {
$average_rating = $rating / count($comments);
} else {
$average_rating = 0;
}
Best regards,
Andreas
I installed the plugin but it did not work and all reviews disappeared, Could you help me with that?
]]>