Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Customer Reviews [without showing email address]

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-19-2009, 08:53 AM
  clik's Avatar 
clik clik is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: Canada
Posts: 30
 

Question Customer Reviews [without showing email address]

Hi,
I need to modify Customer Reviews code, do not display reviewer's email address, only his/her First name.

I have right now (front end, product page):
----------------
Author: First & Last Name (email@address.com)
Customer review message.
----------------

I need (front end, product page):
----------------
Author: Fist Name
Customer review message.
-------------------

The code from reviews.tpl looks like this:

Code:
<b>{$lng.lbl_author}: {$r.email|default:$lng.lbl_unknown}</b><br />{$r.message|replace:"\n":"<br />"}

X-Cart version 4.1.10

I guess it has to be $r.email modified. Any suggestions?

Thank you
__________________
__________________
XC5: 5.3.4.4
PHP: 7.0.26
MySQL server: 5.5.56-MariaDB
Reply With Quote
  #2  
Old 03-19-2009, 09:27 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Customer Reviews [without showing email address]

/skin1/modules/Customer_Reviews/reviews.tpl

Removal of this code is recommended, as it auto-populates the customer email address into the name field (if customer is logged in).

Code:
({$customer_info.email|escape})

Here's a mod that adds review date and reviewer location...
http://forum.x-cart.com/showthread.php?t=38371
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
clik (03-19-2009)
  #3  
Old 03-19-2009, 09:44 AM
  clik's Avatar 
clik clik is offline
 

Advanced Member
  
Join Date: Mar 2006
Location: Canada
Posts: 30
 

Default Re: Customer Reviews [without showing email address]

Thanks Phil for prompt reply.
I will try to follow the instructions in your link.
__________________
__________________
XC5: 5.3.4.4
PHP: 7.0.26
MySQL server: 5.5.56-MariaDB
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:19 PM.

   

 
X-Cart forums © 2001-2020