View Single Post
  #2  
Old 07-30-2021, 10:29 PM
 
PhilJ PhilJ is offline
 

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

Default Re: Truncate Product Review to Only 1st Name

/skin/common_files/modules/Advanced_Customer_Reviews/customer_review.tpl

Replace...
Code:
{$review.author|default:$lng.lbl_acr_guest}

With...
Code:
{$review.author|default:$lng.lbl_acr_guest|regex_replace:'/[^a-zA-Z0-9].*/':''}
That'll truncate the review author name after the first space character.
Reply With Quote