Results 1 to 10 of 13

Threaded View

  1. #7
    Join Date
    Mar 2010
    Location
    Nottingham UK
    Posts
    87
    Plugin Contributions
    1

    Default Re: Customers Comments Don't Show In Admin orders.php

    Quote Originally Posted by lat9 View Post
    You can see the customer's comments when you view the details of the order.

    P.S. I didn't say it was "expected behavior", just that the behavior hasn't changed since v1.5.4.
    I know you can, but I thought it might be beneficial to have the comment printed in the side box also, so that its available at a glance before opening each order.

    I'm currently trying to figure out how to safely extract the actual comment around line 993 of the orders.php:

    Code:
     // indicate if comments exist
            $orders_history_query = $db->Execute("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . $oInfo->orders_id . "' and comments !='" . "'" );
    
            if ($orders_history_query->RecordCount() > 0) {
              $contents[] = array('align' => 'left', 'text' => '<br />' . TABLE_HEADING_COMMENTS);
            }
    I've got the comment to display by using the below, but do I need to sanitize the output in some way?

    Code:
            // indicate if comments exist
            $orders_history_query = $db->Execute("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . $oInfo->orders_id . "' and comments !='" . "'" );
    
    	if ($orders_history_query->RecordCount() > 0) {
                $contents[] = array('align' => 'left', 'text' => '<br />' . TABLE_HEADING_COMMENTS) . ":";
                $contents[] = array('align' => 'left', 'text' => $orders_history_query->fields['comments']);
    
            }
    Last edited by bottyz; 30 Jun 2016 at 01:36 PM. Reason: cleaning the code layout

 

 

Similar Threads

  1. Addin Repeat Customers in Admin -> Customers -> Orders.php
    By fabburl in forum Managing Customers and Orders
    Replies: 3
    Last Post: 25 Feb 2014, 05:05 AM
  2. Google checkout orders don't show up in admin panel.
    By mohinder in forum Addon Payment Modules
    Replies: 10
    Last Post: 21 Nov 2007, 09:35 AM
  3. Paypal IPN ALL orders don't show up in Admin
    By theng6987 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 23 Sep 2007, 04:26 PM
  4. New users and orders don't show up in Admin
    By jaztechnologies in forum General Questions
    Replies: 1
    Last Post: 6 Jul 2007, 02:02 AM
  5. Revisting Customers - Need to Show in orders.php
    By phil_lazenby in forum Managing Customers and Orders
    Replies: 0
    Last Post: 21 Jun 2006, 11:16 AM

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