Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Color coded order status...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #81  
Old 03-21-2005, 09:08 AM
 
sstillwell@aerostich.com sstillwell@aerostich.com is offline
 

eXpert
  
Join Date: Jun 2004
Location: Duluth, MN
Posts: 242
 

Default

Looking Good. I like. I think I'll try porting it to the gift certificate page as well.
__________________
No longer using Xcart, was good while it lasted.
Reply With Quote
  #82  
Old 03-28-2005, 07:27 PM
  Jonathan501's Avatar 
Jonathan501 Jonathan501 is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 44
 

Default

This thing has saved me A LOT of time! WOW!!!! A quick color scan and I can see my whole day.
__________________
X-Cart Gold 4.0.12
X-AOM
Color Coded Order Status
Easy CheckOut
ezUpsell
Multiple Upselling Links
Order Management Made Easy
Reply With Quote
  #83  
Old 03-28-2005, 09:44 PM
 
pengrus pengrus is offline
 

eXpert
  
Join Date: Feb 2004
Posts: 359
 

Default

Quote:
Originally Posted by Jonathan501
Nice!!!!!! Wow!!! I didn't know what I was missing. It took the second day of install for it to really click because I could scan the orders fast and see the good from the failed, etc. Everyone should do this mod!

Here's orders_colors.tpl with softer colors.

Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *} {if $orders[oid].status eq "C"} bgcolor="#B8C8FF"} {/if} {if $orders[oid].status eq "P"} bgcolor="#B8FFCB"} {/if} {if $orders[oid].status eq "Q"} bgcolor="#FFFF99"} {/if} {if $orders[oid].status eq "F"} bgcolor="#FFB8C8"} {/if} {if $orders[oid].status eq "I"} bgcolor="#CCCCCC"} {/if}

I am so happy that I discovered this new mod today. Yes, time saving leads to money, more time and relax hopefully.

Jonathan,

Great use of softer color. The only change I recommend to make is the Completed which is a little too close to I - Not Finished.

Here is the new one with only this changed:

Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *} {if $orders[oid].status eq "C"} bgcolor="#A3CBF9"} {/if} {if $orders[oid].status eq "P"} bgcolor="#B8FFCB"} {/if} {if $orders[oid].status eq "Q"} bgcolor="#FFFF99"} {/if} {if $orders[oid].status eq "F"} bgcolor="#FFB8C8"} {/if} {if $orders[oid].status eq "I"} bgcolor="#CCCCCC"} {/if}

Thank you ALL!
__________________
x-cart 4.1.8 Gold
Linux
Reply With Quote
  #84  
Old 06-07-2005, 12:06 AM
 
Maree Maree is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default

I have this mod working with no problem in 4.0.13.
Thank you to the original posters of this code


Maree
4.0.13
__________________
Maree
4.0.13
Reply With Quote
  #85  
Old 08-16-2005, 07:22 PM
 
x-online x-online is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Australia, Sydney
Posts: 189
 

Default

Thanks, this is really excellent both original poster and adpboss.

I knew you can't reply but i'm gradly appreciated your time for explain the steps out.
__________________
X-Cart version 4.x (Most likely will be the latest version)
Reply With Quote
  #86  
Old 10-25-2005, 09:20 PM
 
dchihorn dchihorn is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: USA - Texas - DFW
Posts: 34
 

Default

Just gonna say thanks. I just applied it to my 4.0.16 version and works great.
__________________
--------------------------
X-cart ver 4.0.16
Reply With Quote
  #87  
Old 10-25-2005, 09:27 PM
 
x-online x-online is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Australia, Sydney
Posts: 189
 

Default

dchihorn,

you might want to edit your profile :p
your version seem to be a bit out dated
__________________
X-Cart version 4.x (Most likely will be the latest version)
Reply With Quote
  #88  
Old 10-26-2005, 05:44 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default

I also use this mod to color code my products that are disabled. So, I can see at a glance which products we no longer carry.

Works great.

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #89  
Old 11-16-2005, 09:30 AM
 
simco simco is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 45
 

Default

Hmm... I inserted this mod and when I try to view my order history as a customer I get this:

Warning: Smarty error: unable to read resource: "main/orders_colors.tpl" in /home/wwwxxxx/public_html/cart/Smarty-2.6.9/Smarty.class.php on line 1088

on the summary page. I can still click on the order number and view the complete invoice/order ok but the summary page is kaputzki.

Also, this would explain why in admin it's not working in regards to displaying different colors.

Ideas?
__________________
www.templatedepot.com

PROGRAM: X-CART PRO
VERSION: Version 4.0.14
RUNNING ON: Linux Enterprise 3.0
Reply With Quote
  #90  
Old 01-10-2006, 03:49 PM
 
ryan c. ryan c. is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 58
 

Default

I can not find that bit of code in my version? Version 4.0.17

does it work in Version 4.0.17




Quote:
Originally Posted by pipercub
Here's the code...

First, create a new template called 'order_colors.tpl' (or whatever you prefer). This file should live in the 'Main' directory. Paste the following into this new file:

Code:
{* $Id: orders_colors.tpl,v 1.0 2003/10/26 13:07:50 pipercub Exp $ *} {if $orders[cat_num].status eq "C"} bgcolor="#00CC00"} {/if} {if $orders[cat_num].status eq "P"} bgcolor="#FFFF99"} {/if} {if $orders[cat_num].status eq "F"} bgcolor="#FF33333"} {/if}

Obviously, you can add all of the status indicators that you need, but I only use these three. This is also where you change the colors.

Next, open 'main/orders.tpl'. Find the part of the code where the 'section' loop begins. Replace everything between {section name=cat_num loop=$orders} and {/section} with the following code:

*This is the easy method. Scroll down for the custom method.

Code:
{section name=cat_num loop=$orders} {math equation="x + ordertotal" x=$total ordertotal=$orders[cat_num].total assign="total"} {if $orders[cat_num].status eq "P" or $orders[cat_num].status eq "C"} {math equation="x + ordertotal" x=$total_paid ordertotal=$orders[cat_num].total assign="total_paid"} {/if} { if %cat_num.first% } <table border=0 width=100% cellspacing="1" cellpadding="0"> {/if} <tr> <td align="center" {include file="main/orders_colors.tpl"}> #{$orders[cat_num].orderid} </td> <td align="center" {include file="main/orders_colors.tpl"}> <input type=radio name=orderid value="{ $orders[cat_num].orderid }" { if %cat_num.first% }checked{/if}> </td> <td align="center" nowrap class=Text {include file="main/orders_colors.tpl"}> {$orders[cat_num].status} </td> <td nowrap align="center" {include file="main/orders_colors.tpl"}> <font class=Text>{$orders[cat_num].date|date_format:"%b-%d-%Y"}</font> </td> <td nowrap align="center" {include file="main/orders_colors.tpl"} class=Text> {if $usertype eq "A"}<a href="order.php?orderid={$orders[cat_num].orderid}"> { $orders[cat_num].firstname } { $orders[cat_num].lastname }</a> {/if} </td> <td nowrap align="center" {include file="main/orders_colors.tpl"} class=Text> {if $usertype eq "A"} { $orders[cat_num].provider } {else}<a href="order.php?orderid={$orders[cat_num].orderid}"> { $orders[cat_num].firstname } { $orders[cat_num].lastname }</a> {/if} </td> <td nowrap align=right class=Text {include file="main/orders_colors.tpl"}> {include file="currency.tpl" value=$orders[cat_num].total} </td> </tr> { if %cat_num.last% } <tr><td colspan=7 align=right height=20>{$lng.lbl_gross_total}: {include file="currency.tpl" value=$total}</td></tr> <tr><td colspan=7 align=right height=20>{$lng.lbl_total_paid}: {include file="currency.tpl" value=$total_paid}</td></tr> </table> {/if} {/section}

For theose who don't want to replace their file (due to other mods), you can simply paste:

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

between all of the <td> tags for the cells that you want to affect.

Example:
<td align="center" {include file="main/orders_colors.tpl"}>

Enjoy,
Piper
__________________
Version 4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:27 AM.

   

 
X-Cart forums © 2001-2020