Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Show Order number while on an order in admin


aodfan

Recommended Posts

Hello, Wondering if it was possible to add somewhere to show the order number of the current order that you are viewing on the order.php Maybe right under where it says "Orders", dont know, just wondering if someone could help out

Thanks

Link to comment
Share on other sites

In catalog/admin/orders.php find:

 

<?php
 if (($action == 'edit') && ($order_exists == true)) {
$order = new order($oID);
?>
  <tr>
	<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE;?></td>

 

and replace with:

<?php
 if (($action == 'edit') && ($order_exists == true)) {
$order = new order($oID);
?>
  <tr>
	<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?> [#<?php echo $order->info['orders_id'];?>]</td>

 

in /catalog/admin/includes/classes/order.php find:

	  $this->info = array('currency' => $order['currency'],
					  'currency_value' => $order['currency_value'],
					  'payment_method' => $order['payment_method'],
					  'cc_type' => $order['cc_type'],
					  'cc_owner' => $order['cc_owner'],
					  'cc_number' => $order['cc_number'],
					  'cc_expires' => $order['cc_expires'],
					  'date_purchased' => $order['date_purchased'],
					  'orders_status' => $order['orders_status'],
					  'last_modified' => $order['last_modified']);

 

and replace with:

 

 $this->info = array('currency' => $order['currency'],
					  'currency_value' => $order['currency_value'],
					  'payment_method' => $order['payment_method'],
					  'cc_type' => $order['cc_type'],
					  'cc_owner' => $order['cc_owner'],
					  'cc_number' => $order['cc_number'],
					  'cc_expires' => $order['cc_expires'],
		  'date_purchased' => $order['date_purchased'],
					  'orders_status' => $order['orders_status'],
					  'orders_id' => $order['orders_id'],
					  'last_modified' => $order['last_modified']);

 

That should do the trick.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...