Hi ideasgirl - this was a functionality my clients loved too - so simple and so easy to spot completed orders - so I had a quick look and I have made these changes to the admin/orders.php file if you want to make these changes for yourself then you will see the green numbers back - don't forget to take a backup of the orders file BEFORE to you make these changes! just in case. Not trying to tred on your worthy toes Diva - its a good mod! but when clients ask ...
Ok so around line 1689 of orders.php ie after this batch of code
Code:
$show_payment_type = $orders->fields['payment_module_code'] . '<br />' . $orders->fields['shipping_module_code'];
$close_status = so_close_status($orders->fields['orders_id']);
if ($close_status) $class = "status-" . $close_status['type'];
else $class = "dataTableContent";
insert this
Code:
#SARAH
#if order is completed then make the order number green and bold
if (($orders->fields['orders_status_name']) != "Completed") {
$copg = "";
} else {$copg = "status-completed";}
don't forget to make sure this is before a closing
then on new line 1696 which says:
Code:
<td class="dataTableContent" align="left"><?php echo $show_difference . $orders->fields['orders_id']; ?></td>
insert the extra class $copg which will kick off the css of the status-completed, so it becomes
Code:
<td class="dataTableContent <?=$copg;?>" align="left"><?php echo $show_difference . $orders->fields['orders_id']; ?></td>
give that a whirl and see if that sorts it for you - I know far from elegant but its working :)
so you should see it all like this at the end:
Code:
$show_payment_type = $orders->fields['payment_module_code'] . '<br />' . $orders->fields['shipping_module_code'];
$close_status = so_close_status($orders->fields['orders_id']);
if ($close_status) $class = "status-" . $close_status['type'];
else $class = "dataTableContent";
#SARAH
#if order is completed then make the order number green and bold
if (($orders->fields['orders_status_name']) != "Completed") {
$copg = "";
} else {$copg = "status-completed";}
?>
<td class="dataTableContent <?=$copg;?>" align="left"><?php echo $show_difference . $orders->fields['orders_id']; ?></td>
hope that helps you
Sarah
Bookmarks