Hello
The review count can’t display correct, in the product page there are two reviews, but the count shows only one.
Please find the details in the attachment.
This topic has 10 replies, 3 voices, and was last updated 1 weeks ago ago by Andrew Mitchell
Hello
The review count can’t display correct, in the product page there are two reviews, but the count shows only one.
Please find the details in the attachment.
Hello,
Thank you for reaching out to us.
We recommend that you disable all third-party plugins that are not included with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/). After doing so, please clear your browser’s cache and check again. It is possible that one of these additional plugins is causing the issue.
If the problem persists, we suggest switching to the Parent theme if you are currently using the Child Theme on your site. After clearing the cache, check again.
Do the same test for the default WooCommerce theme – Storefront.
Let us know the results.
Warm Regards,
The 8Theme Team
Hello
We recommend that you disable all third-party plugins that are not included with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/). After doing so, please clear your browser’s cache and check again. It is possible that one of these additional plugins is causing the issue.
→ It doen’t work , This issue can’t disappear.
If the problem persists, we suggest switching to the Parent theme if you are currently using the Child Theme on your site. After clearing the cache, check again.
Do the same test for the default WooCommerce theme – Storefront.
→ It doen’t work also, This issue can’t disappear.
I tried to create one review in staging site and I found this issue was improved , but only the review count in the Xstore Advanced Product Reviews part displays incorrectly.
Could you help me investigate this issue?
Hello, Leon,
Thank you for your message and for the detailed information provided.
We appreciate your efforts in following the troubleshooting steps. Since the issue persists even after disabling third-party plugins and switching to the Parent theme and Storefront, and considering that the problem appears to be partially resolved on the staging site – with the exception of the review count in the XStore Advanced Product Reviews section – we will be happy to investigate this further.
To proceed, could you please provide us with temporary wp-admin access to your staging site, along with FTP access if possible? This will allow our technical team to examine the issue more closely and identify the root cause.
Please be assured that we will do our best to resolve this matter as quickly as possible.
Best Regards,
8Theme’s Team
Hello
Thanks for your reply.
Please help me investigate this issue.
Hello, Leon,
Thank you for providing access. We have resolved the reported issue on your staging website. Additionally, we have created and applied the following patch for your convenience: Patch #94143780. This patch will allow you to implement the same fix on your live website.
You can find detailed instructions on how to manage and apply patches at the following link:
https://www.8theme.com/documentation/xstore/xstore-features/how-to-use-xstore-patcher/
Please also note that these fixes will be included in the next official theme update.
Best regards,
The 8Theme Team
Hi
This issue disappeared in the staging site.However, this issue can’t be removed in the live site. The them has been updated to the latest version.
I wrote a new comment today. Please find the details in the attachment
Hello, Leon,
Please kindly ensure that both the theme and the plugin have been updated to their latest versions. Additionally, confirm whether the cache and CDN have been cleared following the update.
If the issue persists after these steps, we would appreciate it if you could provide us with access to the live site so we can investigate further.
Best regards,
8Theme Team
Hi
Yes, I updated the cache and CDN, this issue can’t disappear. Please help me investigate this issue further.
Hello, Leon,
And thank you for providing access.
We would like to inform you that the issue arises from the way WooCommerce handles review data. Specifically, WooCommerce does not retrieve review information directly from the comments. Instead, it uses cached values stored in the product’s metadata. These values are saved in the following meta_key fields associated with the product post:
– _wc_rating_count — an array representing the number of ratings for each star level (e.g., [5 => 3, 4 => 1, …])
– _wc_review_count — the total number of approved reviews
– _wc_average_rating — the average rating
To resolve this issue, we have implemented an automatic cache refresh after a new review is added. The following function has been added to the xstore-child/functions.php file:
add_action( 'comment_post', function ( $comment_ID, $comment_approved, $commentdata ) {
if ( $comment_approved && 'review' === $commentdata['comment_type'] ) {
$product_id = $commentdata['comment_post_ID'];
wc_update_product_rating( $product_id );
}
}, 10, 3 );
This ensures that the product rating data is updated correctly whenever a new review is submitted and approved.
Best regards,
8Theme Team
You must be logged in to reply to this topic.Log in/Sign up