ideasgirl:
The old SO list:
https://www.dropbox.com/s/7pgluswx1f939qj/old-so-list.jpg?dl=0
As you can see from Firebug, the cell has an additional class that is not included on the new:
<td class="status-completed" align="left">911</td>
```
>
> The new SO list:
> [https://www.dropbox.com/s/wdkeobcmtywxsuf/new-so-list.jpg?dl=0](https://www.dropbox.com/s/wdkeobcmtywxsuf/new-so-list.jpg?dl=0)
>
> The super_stylesheet DOES include the styling:
> ```
span.status-completed{
background-color:#00cc00;
border-color:#000;
border-style:solid;
border-width:1px;
padding: 0.2cm;
color:#fff;
font-size:12px;
font-weight:bold;
}
```
> ...but apparently on the new code is not included.
>
>
> I found it but I'm not a coder and can mess up things for such a big file. It might not be a big deal for some users but it is **much better when trying to "follow up" orders**; it does help a lot and since it was there why take it away? :( (I know it wasn't on purpose)
>
> I will really appreciate the help on this one, just tell me *where* I insert *what*, and I will test it right away and give you feedback.
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
$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
#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:
<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
<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:
$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