Home Forums WC Vendors Pro Support Hide the user that rated the vendor

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #66219

    Hello.
    My rating for vendors it is O.K but I want to hide the name of the person or user that evaluated the vendor.
    On the picture you can see first, the date and the person´s name, for example Pamela…
    Thank you very much.
    Regards,
    Cecilia

    #66251
    Anna
    Member

    Hello
    Yes- you can modify the template for the ratings and change this.

    First find this file:
    wp-content/plugins/wc-vendors-pro/templates/store/store-raings.php

    Copy this file.

    Then move it here:
    wp-content/themes/your-theme-or-child-theme/wc-vendors/store/store-ratings.php

    Modify this line (line 35). change it from this:
    $customer_name = ucfirst( $customer->display_name );

    to this (you just are “commenting out” that line):
    //$customer_name = ucfirst( $customer->display_name );

    Save the changes. That should do it.

    #66347

    Anna, thank very much, I did it.It´s correct for the rating page but incorrect for the product name, still appears the customer´s on the product page.
    Please see the pictures.
    Thank you very much.
    Regards,
    Cecilia

    #66399
    Anna
    Member

    @cecilia
    Hello,
    Ok- I see that. I forgot about that one!

    You will need to override another template.
    wp-content/plugins/wc-vendors-pro/templates/front/ratings/ratings-display-panel.php

    Copy & move to:
    wp-content/themes/your-theme-or-child-theme/wc-vendors/front/ratings/ratings-display-panel.php

    In line 18 you will see this:
    <?php _e( ' by ', 'wcvendors-pro'); echo $customer_name; ?>

    Change it to this:
    <?php// _e( ' by ', 'wcvendors-pro'); echo $customer_name; ?>

    #66730

    Hello Anna.
    Thank very much, I did it, but it appeared an error on the page, so I deleted that part and then it worked.
    Thank you again.
    Regards,
    Cecilia

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.