X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Customer Reviews [without showing email address] (https://forum.x-cart.com/showthread.php?t=46384)

clik 03-19-2009 08:53 AM

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

PhilJ 03-19-2009 09:27 AM

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

clik 03-19-2009 09:44 AM

Re: Customer Reviews [without showing email address]
 
Thanks Phil for prompt reply.
I will try to follow the instructions in your link.
:wink:


All times are GMT -8. The time now is 02:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.