Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change color of order status?


cgchris99

Recommended Posts

I'll answer my own question. I modified the style sheet and added a class for DataTableContentBlue

 

Then I modified the Orders.php in admin.

Around line 439 I replaced this line

<td class="dataTableContent" align="right"><?php echo $orders['orders_status_name']; ?></td>

 

With this Code

<?php if ($orders['orders_status_name']=='Pending') {

echo '<td class="dataTableContentBlue" align="right">';}

else {

echo '<td class="dataTableContent" align="right">'

;} ?>

<?php echo $orders['orders_status_name']; ?></td>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...