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
  #111  
Old 11-22-2006, 07:21 AM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Color coded order status...

This line of the orders_list.tpl:

<td colspan="{$colspan}">[img]{$ImagesDir}/spacer.gif[/img]</td>

The image did not show for me. I had to make it like this:

<td colspan="{$colspan}"><img src="{$ImagesDir}/spacer.gif"></td>

There is one other one like that for the "no_ip.gif". Not sure if anyone else ran into that. That said, this is seriously one of the best mods out there if you have a lot of orders like we do.
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #112  
Old 12-04-2006, 01:54 AM
 
andreas04031 andreas04031 is offline
 

Advanced Member
  
Join Date: Jun 2004
Location: Dallas, TX
Posts: 64
 

Default Re: Color coded order status...

cart 3.5.14

admin works fine, on the frontend I get an error message

Code:
Warning: Smarty error: unable to read template resource: "orders_colors.tpl" in /home/user/public_html/cart3/Smarty-2.5.0/Smarty.class.php on line 1042
Attached Thumbnails
Click image for larger version

Name:	order_color_keys_frontend_e.gif
Views:	313
Size:	4.8 KB
ID:	179  
__________________
X-Cart version 3.5.9 (online)
X-Cart Version 4.0.19 (online)
X-Cart Version 4.1.3 (in dev)
PHP 4.4.4
MySQL 4.1.21
Reply With Quote
  #113  
Old 12-22-2006, 07:22 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Color coded order status...

I'm happy to report that this seems to work fine on 4.1.4
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #114  
Old 01-12-2007, 09:34 PM
  newattraction's Avatar 
newattraction newattraction is offline
 

Member
  
Join Date: Oct 2006
Posts: 17
 

Thumbs up Re: Color coded order status...

I just installed both color coded order status mod and color coded product list mod on version 4.1.5 - both mods work perfectly!

Thanks a lot!

Guosheng
www.vonbell.com
__________________
www.vonbell.com
xcart v4.1.6
Reply With Quote
  #115  
Old 01-13-2007, 02:34 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Color coded order status...

Quote:
Originally Posted by newattraction
I just installed both color coded order status mod and color coded product list mod on version 4.1.5 - both mods work perfectly!

Thanks a lot!

Guosheng
www.vonbell.com
I can confirm that Color Order works on 4.1.5 here (Not done the Product one).
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #116  
Old 02-15-2007, 08:54 AM
 
leagcyteam2 leagcyteam2 is offline
 

Member
  
Join Date: Aug 2005
Posts: 25
 

Default Re: Color coded order status...

Why can't I click on the Order #'s on version 4.0.19?

It won't let me view the orders. I have gone through the thread and not seen a solution.

Please advise what I should change in the code to be able to view each order (by clicking the order #)

Thanks!
__________________
4.1.9
Reply With Quote
  #117  
Old 02-15-2007, 09:00 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Color coded order status...

Look at this Post: http://forum.x-cart.com/showpost.php?p=145593&postcount=108 - nothing wrong with giving it a go.

If that doesn't work, try prodding someone else with 4.0.x, prodding pipercub (or anyone else that worked on this) or Upgrading to 4.1 (only if you want to!)
__________________
Location: UK
X-Cart: Gold 4.4.2, Status: Finalizing
Template: Colors
Free Mods: Colour Coded Orders, FAQ Manager
Paid Mods: None... yet.
Server: Linux, Apache: 2.2.15 (Unix), MySQL: 5.0.90-community, PHP: 5.2.13
Reply With Quote
  #118  
Old 03-07-2007, 09:42 AM
  bullfrog's Avatar 
bullfrog bullfrog is offline
 

eXpert
  
Join Date: Oct 2004
Location: Oregon, USA
Posts: 366
 

Default Re: Color coded order status for 4.0.x

I found this discussion and decided to try color coding selected cells. To make it work with my 4.0.x stores, I needed to change the variable names used in main/orders_colors.tpl. I haven't tried it yet on my 4.1.x stores.

{* $Id: orders_colors.tpl,v 1.0.0.0 2007/03/07 10:43:23 max Exp $ *}
{if $orders[oid].status eq "P"} bgcolor="FFAA00"{/if}
{if $orders[oid].status eq "C"} bgcolor="AAFF00"{/if}
{if $orders[oid].status eq "F"} bgcolor="BBBBBB"{/if}
{if $orders[oid].status eq "Q"} bgcolor="FF4444"{/if}
{if $orders[oid].status eq "D"} bgcolor="DDDDDD"{/if}

I inserted {include file="main/orders_colors.tpl"} within some of the <td ....> tags in the template file orders_list.tpl to get the color coding.

Here is an example of a placement. It colors the cells with the pull-down order status box:

{**** following line modified by bullfrog 2007mar07 ****}
<TD nowrap {include file="main/orders_colors.tpl"}>
{**** end of modified section ****}
{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}
<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" border="0" valign="absmiddle">
{/if}
</TD>
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind
Reply With Quote
  #119  
Old 04-01-2007, 11:11 PM
  nobullit's Avatar 
nobullit nobullit is offline
 

Newbie
  
Join Date: Mar 2007
Posts: 3
 

Exclamation Re: Color coded order status...

Quote:
Originally Posted by leagcyteam2
Why can't I click on the Order #'s on version 4.0.19?

It won't let me view the orders. I have gone through the thread and not seen a solution.

Please advise what I should change in the code to be able to view each order (by clicking the order #)

Thanks!

This is for the 4.X modifications. I'm using 4.1.6 and have no clue what would be needed for other versions.

For those that 'lost' their hyperlinks here is the code to get them working again:

To enable the hyperlink for order numbers on about line 72 find :
Code:
<td {include file="main/orders_colors.tpl"}>#{$orders[oid].orderid}</td>
replace with :
Code:
<td {include file="main/orders_colors.tpl"}><a href="order.php?orderid={$orders[oid].orderid}">#{$orders[oid].orderid}</a></td>

To enable the hyperlink for the date the order was placed at about line 93 find:
Code:
<td {include file="main/orders_colors.tpl"} nowrap="nowrap">{$orders[oid].date|date_format:$config.Appearance.datetime_format}</td>
replace with:
Code:
<td {include file="main/orders_colors.tpl"} nowrap="nowrap"><a href="order.php?orderid={$orders[oid].orderid}">{$orders[oid].date|date_format:$config.Appearance.datetime_format}</a></td>

Nice mod.

Zoe
__________________
X-Cart version 4.1.6
get the front end you want!
Reply With Quote
  #120  
Old 08-24-2007, 04:11 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: Color coded order status...

Ahh Zoe - Thanks for the corrections. Looks and works great now!
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
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 03:30 AM.

   

 
X-Cart forums © 2001-2020