View Single Post
  #174  
Old 11-15-2009, 05:13 AM
 
bionicfish bionicfish is offline
 

Member
  
Join Date: Jun 2006
Posts: 10
 

Arrow To get this working for 4.2.2

I have to change some of the code to get this working with 4.2.2, this is due to the way in which the status for an order is done in 4.2.2.

Create the a new file called "orders_colors.tpl" in /skin1/main with the following code:

Code:
{* $Id: orders_colors.tpl,v 1.0 2009/11/15 13:07:50 pipercub Exp $ *} {if $orders[oid].status eq "C"} bgcolor="#00CCFF" {/if} {if $orders[oid].status eq "P"} bgcolor="#00FF66" {/if} {if $orders[oid].status eq "Q"} bgcolor="#FFFF99" {/if} {if $orders[oid].status eq "F"} bgcolor="#FF3333" {/if} {if $orders[oid].status eq "I"} bgcolor="#CCCCCC" {/if}

Then add

Code:
{include file="main/orders_colors.tpl"}

between all the <TD> elements (in the "skin1/main/orders_list.tpl" file) that you want to color, I only do the check box as I dont want to color the whole line. For the first box this would be:

Code:
<td width="5" {include file="main/orders_colors.tpl"}><input type="checkbox" name="orderids[{$orders[oid].orderid}]" /></td>

Enjoy
__________________
Xcart 4.3.1
Reply With Quote