If this is your first visit, check our documentation. To post, register or login.

customers name on review page

Started by asdfwen on 23 Jul 2013, 3:50 PM · Views: 640

Results 1 to 3 of 3
23 Jul 2013, 3:50 PM
#1
asdfwen avatar

asdfwen

New Zenner

Join Date:
May 2012
Posts:
30
Plugin Contributions:
0

Post #1 by asdfwen

Hi, customers first name and last name are shown on review page. It is not good for privacy. Is there a way to show full first name, the first two letters of last name, the rest letters of the last name will be replaced with ***. Is it possible to show customer's name this way?
Thanks for reply!

23 Jul 2013, 4:41 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,152
Plugin Contributions:
56

Post #2 by lat9

You could try my Reviews - Updated plugin; that's one of the things that it does.

29 Jul 2013, 12:47 PM
#3
asdfwen avatar

asdfwen

New Zenner

Join Date:
May 2012
Posts:
30
Plugin Contributions:
0

Post #3 by asdfwen

I did turn to him for help and edited the below file:
/includes/modules/pages/product_reviews_write/header_php.php
and changed:
$sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_lastname'], 'string');
to:
$sql = $db->bindVars($sql, ':customersName', substr($customer->fields['customers_firstname'], 0, 1) . '. ' . $customer->fields['customers_lastname'], 'string');

However, there are two bugs.
1.it only accounts for newly written review.
2. In admin review page,customers' name are shown the same as reviews.php in front website page. I only the customer's full name are shown in admin review page.

So pls kindly help me. Thanks!

lat9:

You could try my Reviews - Updated plugin; that's one of the things that it does.