Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

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

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

    Default 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 ...
    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!

  3. #3
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default 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
    PHP Code:
     $contents[] = array('text' => '<br>' TEXT_INFO_REVIEW_AUTHOR ' ' $rInfo->customers_name); 
    with
    line 362
    PHP Code:
    $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/showth...=reviews+names

    I took out both first and last name

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

    Default Re: Editing the admin reviews.php page

    Glad that this works for you ...
    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!

  5. #5
    Join Date
    Nov 2006
    Posts
    512
    Plugin Contributions
    0

    Default Re: Editing the admin reviews.php page

    I changed this line too:

    line 314
    PHP Code:
    <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...

 

 

Similar Threads

  1. Replies: 0
    Last Post: 2 Apr 2012, 12:52 AM
  2. blank page after editing the 2 configure.php files
    By jpmill1953 in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2010, 08:03 PM
  3. Product page - how to show a link to the reviews page and reviews count?
    By Ronson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Mar 2009, 11:45 PM
  4. editing through the admin page editor
    By geoffkarr in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 2 Apr 2008, 05:41 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