Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Addming extra field in orders.php


Guest

Recommended Posts

Hey All,

 

Could someone give me a hand ... I want to add the order number next to the 'customers name' in the admin -> orders section of the Admin Configuration.

 

Any help would be greatly appreciated.

 

Cheers

Link to comment
Share on other sites

Hey All,

 

Could someone give me a hand ... I want to add the order number next to the 'customers name' in the admin -> orders section of the Admin Configuration.

 

Any help would be greatly appreciated.

 

Cheers

 

 

 

search for this in order.php

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ORDER_TOTAL; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DATE_PURCHASED; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
? ? ? ? ? ? ?</tr>

 

 

Add just above that code:

<td class="dataTableHeadingContent" align="left">     Order #</td>

 

 

 

then...

find this:

 

 ? ? ? ? ? ? ? ?<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $orders['customers_name']; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableContent" align="right"><?php echo strip_tags($orders['order_total']); ?></td>
? ? ? ? ? ? ? ?<td class="dataTableContent" align="center"><?php echo tep_datetime_short($orders['date_purchased']); ?></td>
? ? ? ? ? ? ? ?<td class="dataTableContent" align="right"><?php echo $orders['orders_status_name']; ?></td>
? ? ? ? ? ? ? ?<td class="dataTableContent" align="right"><?php if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
? ? ? ? ? ? ?</tr>

 

 

add this just above that code

 

 ? ?<td class="dataTableContent" align="right"><font color="#990000"><b><?php echo $orders['orders_id']; ?>            </b></font></td>

 

 

Please BACKUP before u do ny thing. PM me if it doesnt work.

U may have white spaces on the find code so u might have to look for it manually.

 

 




			
		
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...