Home › Forums › Themes Support › Claue › Replace the Customer Name of Review Area using ****
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by Harry.
-
AuthorPosts
-
-
September 4, 2018 at 3:54 pm #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,
-
September 4, 2018 at 5:47 pm #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 -
September 4, 2018 at 10:47 pm #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,
-
September 5, 2018 at 11:26 am #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
-
-
AuthorPosts
You must be logged in to reply to this topic.