Zen Cart Logo
Forums / Basic Configuration / Editing the admin reviews.php page

Editing the admin reviews.php page

Locked

Views: 1,514

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Mar 2008, 5:23 PM
#1
dharma avatar

dharma

Totally Zenned

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

Editing the admin reviews.php page

Is there any reason that I shouldn't change this line:

admin>reviews.php
line 362 $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);

to

line 362 $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_id);

It won't mess up my db right?:unsure:

16 Mar 2008, 6:16 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Editing the admin reviews.php page

The customers_id field is not, by default, pulled from the table ... you would also need to pull that field from the reviews table ...

As to hurting anything, no ... you are just changing the display out put on the listing ...

You could also add the customers_id to the list of fields pulled from the reviews table and you could list both the customers_id and the name ...

16 Mar 2008, 7:22 PM
#3
dharma avatar

dharma

Totally Zenned

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

Re: Editing the admin reviews.php page

great! Just to be clear..

The customers_id field is not, by default, pulled from the table ... you would also need to pull that field from the reviews table ...

which means to do this : substitute
line 362

 $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);

with
line 362

$contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_id);

correct?

If I do the above the customer ID displays on the reviews admin page...yay!

I am doing this because the customers_name is blank on this page, a side effect of following this thread:

http://www.zen-cart.com/forum/showthread.php?t=84346&highlight=reviews+names

I took out both first and last name :shocking:

16 Mar 2008, 7:27 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Editing the admin reviews.php page

Glad that this works for you ... :smile:

16 Mar 2008, 7:50 PM
#5
dharma avatar

dharma

Totally Zenned

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

Re: Editing the admin reviews.php page

I changed this line too:

line 314 ```php

<td class="dataTableContent"><?php echo $reviews->fields['customers_id']; ?></td> ```

If figure without the customer name an ID is almost as good..

hope this helps others...:lookaroun