| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Color coded order status... | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Color coded order status...
I created a mod to the orders.tpl file to change the color of the cells with the order info in them. The cells will change color according to the status of the order. This makes it very easy to glance at your screen to get the status.
Here is a screen capture of what I'm talking about. I'll post the code shortly. it's a very simple (yet effective) mod. http://66.113.244.89/order_colors.gif Piper |
|||||||
#2
|
|||||||
|
|||||||
hey, that's pretty cool. Would you be able to change the colours easily?
__________________
X-Cart 3.4.2 - Processor: Dual Hamsters, running on tricked out 21\" version of Hamster Wheel. (tireless little buggers) No hamsters were harmed during the making of this sig. Several were seriously offended. |
|||||||
#3
|
|||||||||
|
|||||||||
Awesome MOD!
Can't wait to incorporate your code into my cart. |
|||||||||
#4
|
|||||||
|
|||||||
Quote:
Yup! The colors are controlled by a seperate .tpl file. you can edit them to whatever you like. It would really be cool to somehow incorporate the color settings into the "General Settings" page, but for now you just need to edit the color values in the tpl. Simple enough. Piper P.S. I've been realy busy lately, but I'll try to post the code tomorrow. |
|||||||
#5
|
|||||||
|
|||||||
Nicely done.
Can't wait for the code.
__________________
X-Cart 3.4.2 - Processor: Dual Hamsters, running on tricked out 21\" version of Hamster Wheel. (tireless little buggers) No hamsters were harmed during the making of this sig. Several were seriously offended. |
|||||||
#6
|
|||||||
|
|||||||
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:
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:
For theose who don't want to replace their file (due to other mods), you can simply paste: Code:
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 |
|||||||
|
#7
|
|||||||||
|
|||||||||
Awesome. Absolutely awesome.
Implemented and I'm tweaking colours right now. ADDED Ok here is my colour scheme. Blue for Complete Grey for Incomplete Red for Failed Green for Processed Yellow for Queued Code:
Hope you like it although it is very easy to change. |
|||||||||
#8
|
|||||||||
|
|||||||||
This is so great that my mind is racing with the possibilities.
It would be great to be able to implement this in the modify product listings. Show out of stock products or low stock products highlighted with colour. |
|||||||||
#9
|
|||||||
|
|||||||
adpboss,
Did you paste the entire chunk of code, or just the 'include'? The reason I ask is because I modified the number of cells that xcart displays on the orders page. I didn't like to have to check a radio button and then hit 'Details', so I added the customers name and made it a hot link. I also modified the date format. All of this is in the big chunk of code. Piper |
|||||||
#10
|
|||||||||
|
|||||||||
Piper,
I just went back and checked. Yes, I have the names and the dates. Great job! I am just finishing modifying the product listings, and will post my code as I complete. Thanks, this is really excellent. |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|