Results 1 to 10 of 16

Hybrid View

  1. #1

    Default Amending names on customer reviews

    can't see this is covered anywhere - apologies if I have missed it.

    I have got quite a few customer reviews - but some of my reviewers don't want their full names on the site - is there any way of just having first names as the reviewer as opposed to the full name which is generated automatically.

    MTIA
    Jayne

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Amending names on customer reviews

    There is a way, but I have to look at it to figure it out.

    I'm sure that you either just have to either remove the last name field or if it's a script adding the first and last name with a space in between then the script has to be edited to just pull the first name.

    It would be nice to have just the first initial and the last name. I think that looks more professional.

    In the meantime you can have instructions on leaving reviews informing the customer that their full name will be shown. That way they won't leave a review if they don't want to have their name showing.

  3. #3

    Default Re: Amending names on customer reviews

    Thanks JP - I take the point that I need to put this on the instructions so that people know.
    I have removed product reviews in the past at the request of customers who hadn't realised that their full name would be on there.

  4. #4
    Join Date
    Mar 2005
    Posts
    30
    Plugin Contributions
    0

    Default Re: Amending names on customer reviews

    I'm looking for a solution to this issue also. It would be great to grab the first name and first letter of last name. Or even just first and location city or state.
    Brian

  5. #5
    Join Date
    Oct 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: Amending names on customer reviews

    I'm also very interested in doing this. If anyone knows how to do this, that would be great. My customers would actually prefer to have only their first name shown... no last name.

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Amending names on customer reviews

    Sounds challenging. I like.

    In your includes/modules/<your_template>/pages/reviews/header_php.php file,

    find:

    PHP Code:
    $reviews_query_raw "SELECT r.reviews_id, left(rd.reviews_text, 100) AS reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, r.customers_name 
                          FROM " 
    TABLE_REVIEWS " r, " TABLE_REVIEWS_DESCRIPTION " rd, " TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd 
                          WHERE p.products_status = '1' 
                          AND p.products_id = r.products_id 
                          AND r.reviews_id = rd.reviews_id 
                          AND p.products_id = pd.products_id 
                          AND pd.language_id = :languageID 
                          AND rd.languages_id = :languageID" 
    $review_status 
                          ORDER BY r.reviews_id DESC"

    replace with:

    PHP Code:
    $reviews_query_raw "SELECT r.reviews_id, left(rd.reviews_text, 100) AS reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, c.customers_firstname
                          FROM (" 
    TABLE_REVIEWS " r, " TABLE_REVIEWS_DESCRIPTION " rd, " TABLE_PRODUCTS " p, " TABLE_PRODUCTS_DESCRIPTION " pd, " TABLE_CUSTOMERS " c)
                          WHERE p.products_status = '1' 
                          AND p.products_id = r.products_id 
                          AND r.reviews_id = rd.reviews_id 
                          AND p.products_id = pd.products_id 
                          AND pd.language_id = :languageID 
                          AND rd.languages_id = :languageID" 
    $review_status 
                          ORDER BY r.reviews_id DESC"

    Then, in your includes/templates/<your_template>/templates/tpl_reviews_default.php file,

    find this peace:

    PHP Code:
    <?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($reviews->fields['customers_name'])); ?>
    replace with:

    PHP Code:
    <?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($reviews->fields['customers_firstname'])); ?>
    This should output the customer's firstname only rather than the full name.

 

 

Similar Threads

  1. Customer Names Diasappear
    By albert7 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 5 Apr 2011, 09:35 AM
  2. How to hide customers last names in product reviews?
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 4 Jan 2011, 05:34 PM
  3. Reviews - Customer Reviews
    By jorsara in forum General Questions
    Replies: 2
    Last Post: 3 Apr 2010, 03:46 PM
  4. Amending a customer order
    By fully3 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 15 Apr 2007, 03:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg