Totally Zenned
- Join Date:
- Sep 2010
- Posts:
- 611
- Plugin Contributions:
- 0
How to hide customers last names in product reviews?
Can anyone help me, I'm trying to hide the customers last names when a review is posted. I found a post for this a while back...but I can't seem to locate it.
This is the code that I currently have in the tpl_product_reviews_default.php
<div class="productReviewsDefaultReviewer bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews->fields['date_added'])); ?> <?php
list($review_first_name, $review_last_name) = split(' ', zen_output_string_protected($reviews->fields['customers_name']));$last_name_array = str_split($review_last_name,1); echo sprintf(TEXT_REVIEW_BY, $review_first_name).' '.$last_name_array[0].'.'; ?></div>
This hides the entire name and only "." is visible. :wacko: