Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default How to display more Order's info. in Admin.?

    Hi, has anyone managed to display more info. on the right side of the Admin->Customers->Orders page? To make postage calculation faster, I need to be able to see the following info. on the right side for a selected order:

    • Weight of Articles (even if Shipping Option is free)
    • Shipping Address
    • Special Instruction (if any)


    Appreciate your advices much.

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

    Default Re: How to display more Order's info. in Admin.?

    For comments, find the section in the:
    /admin/orders.php

    where the code reads:
    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);
          } 
    And change to read:
    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 '<br />' $orders_history_query->fields['comments']);
          } 
    For the weight you would need to either customize the orders class in the Admin or add a function to calculate the individual weight depending on attributes etc.

    For the shipping address, you could probably pull that from the orders.php to see how that is gathered and use that as a guideline ...
    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!

 

 

Similar Threads

  1. How to display price - not just "more info" link
    By Three Sisters in forum Customization from the Admin
    Replies: 14
    Last Post: 23 Oct 2015, 07:23 PM
  2. v151 Add more info to Registration or Order Page (more fields)
    By imfsub12 in forum General Questions
    Replies: 1
    Last Post: 16 Jul 2013, 01:52 PM
  3. v150 How can I change my Product Info Display Order/Alignment?
    By spiggles87 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Jan 2013, 01:44 PM
  4. How Can I make Admin Categories/Products display more lines of items?
    By lynbor in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Jul 2009, 05:23 PM
  5. How to display more Products on admin page?
    By hales in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Aug 2008, 04:10 PM

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