How to remove this (0) in review tab ? - by Catholicans

This topic has 4 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Tony Rodriguez

  • Avatar: Catholicans
    Catholicans
    Participant
    April 27, 2023 at 07:20

    How to remove this (0) in review tab?
    Screenshot : https://snipboard.io/sFAGpV.jpg

    3 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 27, 2023 at 08:52

    Hello, Catholicans,

    The review tab is a feature of the WooCommerce plugin. To remove the (0) from the review tab, please add the following code to your child theme’s functions.php file:

    add_filter( 'woocommerce_product_tabs', 'wp_woo_rename_reviews_tab', 99);
    function wp_woo_rename_reviews_tab($tabs) {
        global $product;
        $check_product_review_count = $product->get_review_count();
        if ( $check_product_review_count == 0 ) {
            $tabs['reviews']['title'] = 'Reviews';
        } else {
            $tabs['reviews']['title'] = 'Reviews('.$check_product_review_count.')';
        }
        return $tabs;
    }

    We hope this resolves your issue.

    Best Regards,
    8Theme’s Team

    Avatar: Catholicans
    Catholicans
    Participant
    April 28, 2023 at 11:16

    I noticed that the review tab is not tallying the reviews that have been posted. Is there a way to fix this and make it function properly?
    Screenshot: https://snipboard.io/4WKNGQ.jpg

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 28, 2023 at 12:49

    Hello, Catholicans,

    I have tested the functionality of your site with a test product and it appears to be working properly. I have included a screenshot of the test product for your reference: https://postimg.cc/4HGcsjQt

    I have also posted a review of the test product on your site: https://kunjucatholicans.com/product/test-product/#comment-126 and it appears to be functioning correctly. It appears that the issue may be related to a caching issue on your end.

    We suggest that you try clearing your cache and then check back again.

    Best Regards,
    8Theme’s Team

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

You must be logged in to reply to this topic.Log in/Sign up

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.