Forums / General Questions / What shows in a customer review?

What shows in a customer review?

Views: 14,125

Results 1 to 20 of 48
2 Jan 2008, 11:41 PM
#1
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

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

6 Jan 2008, 2:22 AM
#2
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

Re: What shows in a customer review?

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

Musey

6 Jan 2008, 2:46 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

    $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!]
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!

6 Jan 2008, 7:04 AM
#4
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

Re: What shows in a customer review?

Thank you Linda!!!

:clap:

7 Jan 2008, 9:30 AM
#5
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

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

8 Jan 2008, 9:43 PM
#6
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

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??

9 Jan 2008, 12:48 AM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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?

The learning is in the doing.

Potent Products

9 Jan 2008, 6:43 PM
#8
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

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.

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

9 Jan 2008, 10:21 PM
#9
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

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) :)

11 Jan 2008, 4:40 PM
#10
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

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. :smile:

12 Jan 2008, 8:50 AM
#11
musey avatar

musey

New Zenner

Join Date:
Mar 2007
Posts:
23
Plugin Contributions:
0

Re: What shows in a customer review?

LOL can you post the edit you made to make the last name go away :) That one I cant figure out to save my hiney!!

Thanks!
Musey

15 Jan 2008, 6:32 PM
#12
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Re: What shows in a customer review?

Look back at post #3 where Linda tells you where to find the file to modify and the line of code to change... and then remove this part..

customers_lastname

taking care to leave the single quotation marks in there

if I ever figure out that city thing in place of the last name, i'll put that in here too:blink:

13 Mar 2008, 8:15 PM
#13
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: What shows in a customer review?

I have taken Linda's Code :flex:and gotten rid of the last name.

Could I instead of leaving it blank, replace php customers_lastname with ```php
customers_nick


And if so, how do I turn on the Nick Name in the first place...

 I see > Nick Name
> Minimum length of Nick Name in the Admin...but no references to how to turn it on....

and where would it appear? Create_account? would it be editable in my account?

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

13 Mar 2008, 9:12 PM
#14
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: What shows in a customer review?

I also removed customers_lastname from

$customer_query = "SELECT customers_firstname, customers_lastname, customers_email_address
                   FROM " . TABLE_CUSTOMERS . "
                   WHERE customers_id = :customersID";

from line 42 of the product reviews write header page...is that safe to do?:unsure:

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

9 Apr 2008, 2:13 PM
#15
sagiordano avatar

sagiordano

New Zenner

Join Date:
Nov 2007
Posts:
13
Plugin Contributions:
0

Re: What shows in a customer review?

one question about this...can this page be done as an override?

9 Apr 2008, 2:24 PM
#16
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: What shows in a customer review?

/includes/modules/pages/product_reviews_write/header_php.php

has no override file.

Its ok to change it, just make a note to yourself that you changed it, so that when you upgrade, you can change the new upgraded /includes/modules/pages/product_reviews_write/header_php.php file in the same way.

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

11 Aug 2008, 7:44 AM
#17
princesstimetoys avatar

princesstimetoys

New Zenner

Join Date:
Aug 2008
Posts:
3
Plugin Contributions:
0

Re: What shows in a customer review?

HELP! I made the changes to remove the last name, worked beautifully, however, now my review page is showing the wrong title and small thumbnail picture - the same wrong title and picture, on every review entry.

https://dprhensim67.doteasy.com/~admin162/zen-cart/index.php?main_page=product_reviews&products_id=113&zenid=30gcb10hsjhien7rnmsea5nkl2

In this view the review is correct. Why is that dang stroller showing up on every page! Grrrrr....
http://www.princesstimetoys.com/zen-cart/index.php?main_page=product_reviews_info&products_id=113&reviews_id=8&zenid=30gcb10hsjhien7rnmsea5nkl2I

Any assistance would be most welcomed.

11 Aug 2008, 8:39 AM
#18
princesstimetoys avatar

princesstimetoys

New Zenner

Join Date:
Aug 2008
Posts:
3
Plugin Contributions:
0

Re: What shows in a customer review?

I reset the file from the backup so it's working right again, but the last names are back :(

18 Aug 2008, 4:28 AM
#19
exittheapple avatar

exittheapple

New Zenner

Join Date:
Nov 2005
Posts:
53
Plugin Contributions:
0

Re: What shows in a customer review?

hi guys thanks for the info - my customers will be SO happy if i can make this work!

i deleted the 'customers_lastname' tag from line 42 AND from line 80 and the last names are still showing up in all my reviews... does this not work on existing reviews, only new ones?

is there any way to change the way the existing reviews are displayed?

zencart installation is at http://oyinhandmade.com/shop

27 Aug 2008, 4:45 PM
#20
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: What shows in a customer review?

The reviews take the first and last name in the main customer table in your database and put them together in the reviews table in your database. So any reviews already compiled are set. The only way to eliminate the last name in the existing reviews is to physically go into your reviews table in your database and delete the last name in that column, leaving the first name intact.

If you are not used to going into the database or do not have a tool to do that, search the forum here for database editing advice. It is pretty scary, but can be done safely. You can't be reckless about it.