View Single Post
  #128  
Old 01-24-2008, 08:00 PM
 
sales@webosusa.com sales@webosusa.com is offline
 

Senior Member
  
Join Date: Nov 2007
Location: Australia
Posts: 118
 

Talking Re: Color coded order status...

For those that never put the code on 4.1.9 here gos the code from the fist step AGAIN.

Create a tpl call "orders_colors.tpl" with the code below provide by adpboss

Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss 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}

change the code below...

Code:
<tr{cycle values=", class='TableSubHead'"}> <td width="5"><input type="checkbox" name="orderids[{$orders[oid].orderid}]" /></td> <td><a href="order.php?orderid={$orders[oid].orderid}">#{$orders[oid].orderid}</a></td> <td nowrap="nowrap"> {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")} <input type="hidden" name="order_status_old[{$orders[oid].orderid}]" value="{$orders[oid].status}" /> {if $orders[oid].goid ne ""} {assign var="is_gcheckout_orders" value="1"} {include file="main/order_status.tpl" status=$orders[oid].status mode="select" name="order_status[`$orders[oid].orderid`]" extra="disabled='disabled'"} {else} {include file="main/order_status.tpl" status=$orders[oid].status mode="select" name="order_status[`$orders[oid].orderid`]"} {/if} {else} <a href="order.php?orderid={$orders[oid].orderid}"><b>{include file="main/order_status.tpl" status=$orders[oid].status mode="static"}</b></a> {/if} {if $active_modules.Stop_List ne '' && $orders[oid].blocked eq 'Y'} <img src="{$ImagesDir}/no_ip.gif" style="vertical-align: middle;" alt="{$lng.lbl_blocked}:{$orders[oid].ip}" title="{$lng.lbl_ip_blocked|substitute:"ip":$orders[oid].ip}" /> {/if} </td> <td>{$orders[oid].firstname} {$orders[oid].lastname} ({$orders[oid].login})</td> {if $usertype eq "A" and $single_mode eq ""} <td>{$orders[oid].provider}</td> {/if} <td nowrap="nowrap"><a href="order.php?orderid={$orders[oid].orderid}">{$orders[oid].date|date_format:$config.Appearance.datetime_format}</a></td> <td nowrap="nowrap" align="right"> <a href="order.php?orderid={$orders[oid].orderid}">{include file="currency.tpl" value=$orders[oid].total}</a> </td> </tr>

for this one...

Code:
{* Colors modification MOD *} <tr{cycle values=", class='TableSubHead'"}> <td width="5"><INPUT type="checkbox" name="orderids[{$orders[oid].orderid}]"></td> <td {include file="main/orders_colors.tpl"}>#{$orders[oid].orderid}</td> <td nowrap> {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Module ne "")} <INPUT type="hidden" name="order_status_old[{$orders[oid].orderid}]" value="{$orders[oid].status}"> {include file="main/order_status.tpl" status=$orders[oid].status mode="select" name="order_status[`$orders[oid].orderid`]"} {else} {include file="main/order_status.tpl" status=$orders[oid].status mode="static"} {/if} {if $active_modules.Stop_List ne '' && $orders[oid].blocked eq 'Y'} [img]{$ImagesDir}/no_ip.gif[/img] {/if} </td> <td {include file="main/orders_colors.tpl"}>{$orders[oid].firstname} {$orders[oid].lastname} ({$orders[oid].login})</td> {if $usertype eq "A" and $single_mode eq ""} <td> {$orders[oid].provider} </td> {/if} <td {include file="main/orders_colors.tpl"} nowrap>{$orders[oid].date|date_format:$config.Appearance.date_format}</td> <td {include file="main/orders_colors.tpl"} nowrap align="right"> {include file="currency.tpl" value=$orders[oid].total} </td> </tr> {* Colors modification MOD *}

As long as i know this modification will be good for any 4.x.x X-Cart versions but i install on 4.0.1, 4.1.0, 4.1.1, 4.1.7, 4.1.9 (I use this one).

If you never modified the code on "orders_list.tpl", just download the files "READY" and upload on your server OVERWRITING the old files.

Making sure everybody understand.... from the fist post says to modified the file "orders.tpl" but if you using the 4.x.x and higher you will not need that. You only will work with the "orders_colors.tpl" and "orders_list.tpl" nothing more.

DOWNLAOD HERE


The original forum page where you can find full discussion about this MODULE is: http://forum.x-cart.com/showthread.php?t=4949


Enjoy!

__________________
Pedro
digitalnotions.i2u.shop
shop.modestclassy.com.au4.1.9 X-Cart
X-Cart
Business 5.3.6.0
Multi-vendor 5.3.6.0


Reply With Quote