Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48
  1. #1
    Join Date
    Mar 2007
    Posts
    23
    Plugin Contributions
    0

    Default What shows in a customer review?

    Hey everyone...I hope you had some awesome holidays! My question is that my customer reviews are showing both the first and last name of a customer and I would prefer it only show the first name. Is there a way I can change this so that my customers do not feel that their personal info is being spread around every where?? Thanks in advance for your help :)

    Musey

  2. #2
    Join Date
    Mar 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    I assume that means there is not a way to go about doing this?

    Musey

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: What shows in a customer review

    You would need to customize the:
    /includes/modules/pages/product_reviews_write/header_php.php

    you need to change the line:
    PHP Code:
        $sql $db->bindVars($sql':customersName'$customer->fields['customers_firstname'] . ' ' $customer->fields['customers_lastname'], 'string'); 
    to what you want stored in the reviews table ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Thank you Linda!!!


  5. #5
    Join Date
    Mar 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Well shuckey darn! I tried to take that portion of customer lastname out and it is still showing the last name. There isnt anything else I want there..I just dont want it to show the last name is all....what did I do wrong?

    Musey

  6. #6
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Is there any way to make it show First Name and the Customer's City.... or first name and the customer's Forum ID if you have a forum set up from the start??

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: What shows in a customer review

    If you don't tell what you did, or what code you are using, it is very hard to provide a decent reply.

    Linda gave you the code and instructions to do what you want. What did you do from there?

  8. #8
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    I haven't done anything to it yet, I'm not sure how to proceed.

    Linda gave instructions on removing the last name and displaying only the first name.

    What I need to do is remove the last name, and display only their first name AND the customer's City.

    The part where I'm confused is how to make it display the customer City.

  9. #9
    Join Date
    Mar 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Well this is what I did:

    $sql = $db->bindVars($sql, ':customersName', $customer->fields['customers_firstname'] . ' ' . $customer->fields['customers_city'], 'string');
    $sql = $db->bindVars($sql, ':rating', $rating, 'string');

    it is still showing the last name......before I simply tried to take out the coding section for the last name to remove the field all together but that didnt work. I am new to coding so I am not html adept. I am trying to learn so please be patient with me :)

    Thanks!
    Musey

    PS! Is this only going to work for new reviews or will it use those fields for the old reviews too? (this was the edit) :)
    Last edited by Musey; 9 Jan 2008 at 11:25 PM. Reason: To add the PS!

  10. #10
    Join Date
    Dec 2007
    Posts
    141
    Plugin Contributions
    0

    Default Re: What shows in a customer review

    Well, the site won't be going live for another day or so, so they're aren't any old reviews to worry about, so only new reviews.

    I've been messing with this for days and I can manage is to make the last name go away, but I can't put the city in.

    I'm new to coding myself, so I definitely understand what you're going through and I appreciate your help.

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. How do I change what shows in browser window?
    By ravenwolf in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 4 Apr 2013, 05:11 AM
  2. Why Only One Review shows on the side box?
    By zihaizi in forum Basic Configuration
    Replies: 4
    Last Post: 17 Sep 2010, 03:09 PM
  3. Review page for specific product shows no reviews
    By vampofvegas in forum General Questions
    Replies: 0
    Last Post: 5 May 2010, 01:33 AM
  4. Replies: 2
    Last Post: 28 Sep 2009, 10:10 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR