Zen Cart Logo
Forums / General Questions / How to display more Order's info. in Admin.?

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

Locked

Views: 983

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Jul 2008, 7:00 PM
#1
stenrique avatar

stenrique

Zen Follower

Join Date:
Apr 2005
Posts:
355
Plugin Contributions:
0

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.

3 Jul 2008, 7:56 PM
#2
ajeh avatar

ajeh

Oba-san

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

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

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

where the code reads:

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

// 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 ...