I am wondering just where the following code (from Post 118) should be inserted. The initial reference was to around line #699 in admin/orders.php, however, my admin/orders.php is so modded that it is difficult for me to ascertain.
Between relevant sections would be better e.g. after the code for
if (MODULE_ORDER_TOTAL_DOUBLEBOX_STATUS == 'true') {
and before
require(DIR_WS_MODULES . 'orders_download.php'),
which is where line 699 falls in my case.
And many thanks JT for a great mod update.
JTheed:
The problem is that it doesn't touch that code in orders.php. Here is what you will need to get it to work as you want it to:
<?php
// COWOA add new frameset here to display account status when looking at a customer detail record
$check_status = $db->Execute("select customers_name, customers_email_address, orders_status,
date_purchased, COWOA_order from " . TABLE_ORDERS . "
where orders_id = '" . (int)$oID . "'");
?>
<tr>
<td class="formAreaTitle"><?php echo COWOA_SECTION_HEADING; ?></td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php if ($check_status->fields['COWOA_order'] == 1) echo COWOA_STATUS_TRUE; else echo COWOA_STATUS_FALSE; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<?php
// END OF COWOA new frameset
?>