This topic has 9 replies, 4 voices, and was last updated 5 months ago ago by Andrew Mitchell
Hi
The rating count can display in prodcut archive page , but the review count doesn’t work .
For example product “COURT CARRÉ ROND – VELOURS BLEU PETIT POISSON ORANGE ” has one review , but in prodcut archive page the review count display as ” 0 “.
Hello,
Thank you for reaching out to us with your concern.
We suggest disabling all third-party plugins (including cache plugins and disable CDN on your site) that do not come bundled with XStore (https://www.8theme.com/documentation/xstore/plugins/included-plugins/ ), clearing the cache of the browser, and then checking again. It is possible that one of the additional plugins is causing the issue.
If this doesn’t help, please provide FTP access.
For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.
Best Regards,
8Theme’s Team
Hi
I disabled all the third plugins by following your instructions, but it dosen’t work.
So I will share with you FTP access.
Thank you
Hello,
We have noticed that the information displayed at https://prnt.sc/-X-eVenIbgbJ is a result of the code implemented in your child theme, as shown here: https://prnt.sc/TVdxg7DezgPg
Please understand that we are not responsible for modifications made independently within the code by users. Considering that this involves a default filter for WooCommerce, similar outcomes would occur with the default theme as well. Therefore, we recommend that you contact WooCommerce support for further assistance https://wordpress.org/support/plugin/woocommerce/
Thank you for your understanding.
Best Regards,
The 8Theme Team
Hi
I see. The code in the child theme is 8Theme team provided with me in another topic ticket. Please find the details in attactment.
Could you help me investigate the reason and resolve this issue?
Hi @vera,
We’ve updated the custom codes to this:
add_filter('woocommerce_product_get_rating_html', function($html, $rating, $count) {
global $product;
$review_count = $product->get_review_count();
$label = sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $rating );
$html = '<div class="star-rating" role="img" aria-label="' . esc_attr( $label ) . '">' . wc_get_star_rating_html( $rating, $count ) . '</div><span class="rate-count">('.$review_count.')</span>';
return $html;
}, 10, 3);
Now the review count is working fine.
Can you please check?
Best Regards,
The 8Theme Team
Hi
Thanks for your resolution.
The erro disappeared.
Hi @vera,
In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?
Click here to share your thoughts: https://themeforest.net/downloads
Being part of our community means a lot, and your feedback contributes immensely.
Best Regards,
The 8Theme Team
Dear vera,
Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?
Click here to share your insights: https://themeforest.net/downloads
Your support fuels our journey, and we appreciate it more than words can express.
Best Regards,
The 8Theme Team
The issue related to '‘The count of reviews in product archive page doesn’t work’' has been successfully resolved, and the topic is now closed for further responses