The count of reviews in product archive page doesn’t work

This topic has 9 replies, 4 voices, and was last updated 5 months ago ago by Andrew Mitchell

  • Avatar: vera
    Ve01
    Participant
    June 13, 2024 at 18:37

    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 “.

    Files is visible for topic creator and
    support staff only.
    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 13, 2024 at 19:50

    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

    Avatar: vera
    Ve01
    Participant
    June 14, 2024 at 10:57

    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

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 14, 2024 at 15:34

    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

    Avatar: vera
    Ve01
    Participant
    June 14, 2024 at 16:50

    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?

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    June 14, 2024 at 17:44

    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

    Avatar: vera
    Ve01
    Participant
    June 17, 2024 at 10:10

    Hi

    Thanks for your resolution.
    The erro disappeared.

    Avatar: Justin
    Luca Rossi
    Support staff
    June 17, 2024 at 11:20

    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

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 23, 2024 at 12:25

    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

  • Viewing 9 results - 1 through 9 (of 9 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.