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
  #71  
Old 01-03-2005, 08:23 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

So.....

which version do you think you should use?

Reply With Quote
  #72  
Old 01-03-2005, 08:25 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

M&M's AND Girls. I am a trader by nature and bartering is the "original" way of doing business.

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

see that? It's like one or two lines from the top of my posted code (assuming you are doing 4.0).

That would be a regular <TD> but we added the call to include the code from orders_colors.tpl.

Well what happens when we add the code from orders_colors.tpl?

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}

So if the order has a status of "C" for complete, the following Smarty

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

will become

Code:
<TD bgcolor="#00CCFF">

when the template is generated. Note the background colour of the cell is Hex #00CCFF which is a very nice blue.
Reply With Quote
  #73  
Old 01-03-2005, 08:25 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

Well, the 4.X version? Which, obviously, is the version I used. But, as you can tell, it didn't work.

But you still didn't say how the orders_colors.tpl file was referenced in the code.

And does the first line of the orders_colors.tpl have to have the same name as the file it is in? They don't match.
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #74  
Old 01-03-2005, 08:26 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Read again what I just posted. This does in fact work, there are several people using it.

We will step through your code bit by bit.
Reply With Quote
  #75  
Old 01-03-2005, 08:30 PM
 
g0t0pless g0t0pless is offline
 

eXpert
  
Join Date: Jul 2003
Posts: 360
 

Default

Ah hah!!!!!!

I see what the problem is!!!!!!!

In your post, you have the codes switched. You want us to replace the "new" code with the "original" code.

You need to jump up there and switch them around.

I got it to work by pasting the code from the TOP code you posted for 4.X version, not the BOTTOM code.

Thanks man, works great.
__________________
4.1.7
X-Cart Gold
Product Configurator Module
Advanced Order Management Module
RMA Module
Feature Compare Module
Blue Dream theme by 7Dana.com
Reply With Quote
  #76  
Old 01-03-2005, 08:42 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Both of my posts are fixed now. My bad.

Sorry for being short but I'm sick, busy and probably not the best person to be walking people step by step through mods.

Despite my enormous post count, I am a pretty big X-Dummy compared to so many of the real contributors here. 70% of my posts are yelling at X-Cart or telling people to put their version in their sig.

Anyway, enjoy your cool new mod and figure out the product one on your own (unless you spot another screw up by me).
Reply With Quote
  #77  
Old 01-03-2005, 10:55 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Just wanted to say thank you for this, life is so much easier. I was actually just thinking about a mod like this too. Cool Also, works perfect in 4.0.9.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #78  
Old 01-03-2005, 11:00 PM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default

Hello adpboss,

I would like to say a HUGE big thank you for offering to share this terrific mod with the xcart community. I am sure that i speak for us all when i say it is greatly appreciated.

I am excited to say i too have this working on my 4.0.4 cart and I can see how this is a big help with order management.

We are all new at one time or another here and as a community we pull together to get things going, so no need to appologise for an mistake or misunderstanding.. We are humans not computers LOL

I too can say that as a new user to xcart over the past several weeks I have made several mods to my cart from this forum, thanks to people like yourself that share there knowledge no matter how small you may think your contribution is.. At the end it all adds up.

Thanks again..

Cheers
Melanie
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #79  
Old 02-09-2005, 08:36 PM
 
fuzzy fuzzy is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: oHIo
Posts: 77
 

Default

ghhoz.... I'll second that statment!
1 This IS a bloody Awesome mod!
and 2.. If it wasn't for the Gurus sharing their knowlage I would
have trashed the script a long time ago.

I mean gave up on using it. I've trashed it more times than I can count.
__________________
X-Cart 4.0.12 Gold
Linux
Reply With Quote
  #80  
Old 03-19-2005, 09:49 PM
  Jonathan501's Avatar 
Jonathan501 Jonathan501 is offline
 

Advanced Member
  
Join Date: Nov 2004
Posts: 44
 

Default

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}
__________________
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
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 12:19 PM.

   

 
X-Cart forums © 2001-2020