Home Forums Themes Support Claue Replace the Customer Name of Review Area using ****

Topic Resolution: Resolved
Viewing 3 reply threads
  • Author
    Posts
    • #24378

      Hi,

      This question is not regarding your theme !

      But can you help me ?

      When customer add new review to product’s review area. Customers full name display in that area. I want to replace that customer name by this symbols (*). Only display first and last letter of customer.  ( check following image )

      I got some Jquery code from Stackoverflow….  but I cannot implement that in to my child’s theme’s javascript file properly.

      This is the code that working on Web browser console…..

      var str = ‘David De Silva’;
      console.log(str.replace(str.substring(1,12), “*******”));

      But I need to assign that code here in this “.woocommerce-review__author” class.

      Code snippet from : https://stackoverflow.com/questions/46957565/replacing-middle-n-characters-in-javascript

       

      Best Regards,

    • #24394

      Hi,

      Please try this https://silicondales.com/tutorials/woocommerce/woocommerce-change-review-author-display-name-username/ and https://stackoverflow.com/questions/42635460/change-review-display-name-on-woo-commerce-store

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #24413

      Hi,

      Thank you for that great information but also Guest verified customers names changed to “Anonymous”.

      This website that I’m developing is guest customers’ niche. So that code doesn’t work according to my needs.

      Can your developers have any idea about Jquery solution that I mentioned on previous message.

      Best Regards,

       

    • #24418

      Hi,

      Please change the text in the function

      $author = __('Anonymous');

      to

      $author = __(‘Guest…’);

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 reply threads

You must be logged in to reply to this topic.