Show the number of reviews per products.

This topic has 18 replies, 3 voices, and was last updated 8 months, 1 weeks ago ago by Rodlens Hora

  • Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 11, 2024 at 06:43

    show the number of reviews per product? Right now there are eg. for a product 5 stars but i would like to show number of reviews behind the stars in brackets: ***** (7)

    In the home page and the shop page

    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 11, 2024 at 09:50

    Hello, Rodlens Hora,

    Thank you for reaching out to us with your request.

    Kindly review the following topic for the information you requested:: https://www.8theme.com/topic/reviews-number-next-to-stars-on-every-product-shop-page/

    If you have any other questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.

    Best Regards,
    8Theme’s Team

    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 11, 2024 at 22:41

    Thanks, I find this code snippets it work on the xstore widget great. The only problem I had with it that is not display align on the shop page. Could you guys help me, please.

    
    add_filter('woocommerce_product_get_rating_html', function( $html, $rating, $count ){
        global $product;
        $review_count = $product->get_review_count();
        if ( $review_count && !is_product() ) {
           $html = '<div class="rating-wrapper">' . $html . '(' . $review_count . ')' . '</div>';
        } elseif ( $review_count < 1 && !is_product() ) {
            $html = '';
        }
        return $html;
    },10,3);
    
    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 12, 2024 at 08:26

    Hello, Rodlens Hora,

    We kindly request that you implement the following custom CSS code:

    .content-product .star-rating {
        display: inline-block;
    }

    Theme Options > Theme custom CSS > Global.

    Should you require any further assistance, please do not hesitate to reach out.

    Best Regards,
    8Theme’s Team

    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 12, 2024 at 12:00

    Thanks, it works, but can you please add a little space between for the desktop and tablet? i look good on the mobile

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 12, 2024 at 13:19

    Hello, Rodlens Hora,

    You’re welcome!

    @media only screen and (min-width: 480px) {
        .content-product .star-rating, .etheme-product-grid-item .star-rating {
            margin-right: 5px;
        }
    }

    Best Regards,
    8Theme’s Team

    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 12, 2024 at 17:06

    Thank you for your assistance, everything is functioning properly now. This will be my final question. I apologize for bothering you. I have recently noticed that the review count is not being displayed in the Related Products section on the individual product page. I am unsure if there is a way for you to resolve this issue by making the code integrate in it.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 13, 2024 at 08:18

    Hello, Rodlens Hora,

    Please provide temporary FTP access, we will check what can be done to help you.

    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: Rodlens Hora
    Rodlens Hora
    Participant
    March 14, 2024 at 02:04

    FTP access on the private area

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    March 14, 2024 at 09:19

    Dear Rodlens Hora,

    We hope this message finds you well.

    We’re reaching out to inquire about the specific location where the custom code snippet was integrated. We have conducted a thorough review of the functions.php file and were unable to locate the following code:

    
    add_filter('woocommerce_product_get_rating_html', function( $html, $rating, $count ){
        global $product;
        $review_count = $product->get_review_count();
        if ( $review_count && !is_product() ) {
           $html = '' . $html . '(' . $review_count . ')' . '';
        } elseif ( $review_count < 1 && !is_product() ) {
            $html = '';
        }
        return $html;
    },10,3);
    

    Could you please provide us with the details of where this code has been added? This information is crucial for us to proceed with our tasks effectively.

    Additionally, we have encountered difficulties accessing the WordPress admin account. It appears that our login credentials are not functioning as expected. We kindly request that you verify the account details to ensure that we have the correct access.

    Your prompt attention to these matters would be greatly appreciated. Thank you for your cooperation.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 14, 2024 at 17:28

    its a snippets code it locates on Wpcodebox 2 plugin. diplayname (Displaying number of reviews)

    Please contact administrator
    for this information.
    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 14, 2024 at 17:29

    Wpcodebox 2 in the admin side menu

    Avatar: Justin
    Luca Rossi
    Support staff
    March 14, 2024 at 17:59

    Hi @Rodlens Hora,

    The password is incorrect. Please double check.

    Thank you!

    Please contact administrator
    for this information.
    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 14, 2024 at 18:07

    new password private area

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    March 14, 2024 at 18:26

    Dear Rodlens Hora,

    We hope this message finds you well.

    We are currently in the process of integrating custom CSS codes into the system. However, upon review, we have noticed that all products have been removed from the platform. To ensure the proper functionality and appearance of these customizations, we kindly request that you re-add some products to the system.

    Your assistance in this matter will enable us to proceed with the necessary testing and ensure that everything is operating smoothly.

    We appreciate your prompt attention to this request. Should you have any questions or require further information, please do not hesitate to contact us.

    Thank you for your cooperation.

    Best Regards,
    The 8Theme Team

    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 15, 2024 at 00:36

    ok thanks i add some product now

    Avatar: Justin
    Luca Rossi
    Support staff
    March 15, 2024 at 05:13

    Dear Rodlens Hora,

    We are pleased to inform you that we have successfully implemented a custom CSS code to address the issue you were experiencing with the display of the review count. The code is as follows:

    
    .rating-wrapper {
        display: inline;
    }
    .et_column.et_product-block .rating-wrapper {
        display: none;
    }
    .cross-sell-products .rating-wrapper,
    .related-products .rating-wrapper {
        display: inline !important;
    }
    

    The result of this update can be viewed at the following link: [Screenshot](https://prnt.sc/tCiKf4Tkgkx3).

    We kindly request that you review the changes at your earliest convenience and confirm that everything is now functioning to your satisfaction.

    Best regards,
    The 8Theme Team

    Avatar: Rodlens Hora
    Rodlens Hora
    Participant
    March 15, 2024 at 16:32

    I appreciate the result. Thank you

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

The issue related to '‘Show the number of reviews per products.’' 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.