X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Color coded order status... (https://forum.x-cart.com/showthread.php?t=4949)

kevinrm 11-22-2006 07:21 AM

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.

andreas04031 12-04-2006 01:54 AM

Re: Color coded order status...
 
1 Attachment(s)
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


just wondering 12-22-2006 07:22 AM

Re: Color coded order status...
 
I'm happy to report that this seems to work fine on 4.1.4 :)

newattraction 01-12-2007 09:34 PM

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! :D

Thanks a lot!

Guosheng
www.vonbell.com

just wondering 01-13-2007 02:34 AM

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! :D

Thanks a lot!

Guosheng
www.vonbell.com

I can confirm that Color Order works on 4.1.5 here (Not done the Product one).

leagcyteam2 02-15-2007 08:54 AM

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!

just wondering 02-15-2007 09:00 AM

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!)

bullfrog 03-07-2007 09:42 AM

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>

nobullit 04-01-2007 11:11 PM

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

Vacman 08-24-2007 04:11 PM

Re: Color coded order status...
 
Ahh Zoe - Thanks for the corrections. Looks and works great now!


All times are GMT -8. The time now is 03:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.