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
  #151  
Old 02-22-2009, 12:13 PM
 
sambamu sambamu is offline
 

Senior Member
  
Join Date: Jan 2008
Location: New York, USA
Posts: 165
 

Default Re: Color coded order status...

Does this mode work with cart version 4.2
__________________
x-cart version: 4.4.0

Reply With Quote
  #152  
Old 03-04-2009, 07:39 PM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Re: Color coded order status...

or 4.10?
__________________
X-Cart DB Version: 5
Reply With Quote
  #153  
Old 03-05-2009, 06:33 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Color coded order status...

This mod will probably work for every version, at least the color coded order status part. I'm not sure about the other "add-ons" for this mod as I have no need to use them so have not even tried them.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #154  
Old 03-05-2009, 10:04 AM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Re: Color coded order status...

I can't seem to get it to work with 4.10.

I've tried using the initial post. But I don't have the {section} {/section} in orders.tpl it's in orders_list.tpl and when I replace it, it give me an error.
__________________
X-Cart DB Version: 5
Reply With Quote
  #155  
Old 03-05-2009, 11:31 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Color coded order status...

You are right, it is main/orders_list.tpl that you modify.
What error are you getting?
Did you create the orders_colors.tpl?

For 4.1.x versions of x-cart use the code in post #149 of this thread. The original post for this mod was in 2003 so they were most likely using a 4.0.x version. I know the code from post #149 works on 4.1.0, 4.1.11, and 4.2.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #156  
Old 03-05-2009, 12:04 PM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Re: Color coded order status...

Error: Warning: Smarty error: unable to read resource: "main/orders_colors.tpl" in /var/www/vhosts/sitonthis.ca/httpdocs/kink/Smarty-2.6.19/Smarty.class.php on line 1092
>#4023

Code I have:


Any idea what I'm doing wrong?

Code:
{* $Id: orders_list.tpl,v 1.18.2.14 2008/05/16 13:57:44 zaa Exp $ *} {assign var="total" value=0.00} {assign var="total_paid" value=0.00} <script type="text/javascript"> <!-- var txt_delete_selected_orders_warning = "{$lng.txt_delete_selected_orders_warning|escape:javascript|strip_tags}"; --> </script> {if $orders ne ""} {capture name=dialog} <div align="right">{include file="buttons/button.tpl" button_title=$lng.lbl_search_again href="orders.php"}</div> {include file="customer/main/navigation.tpl"} {* Colour Key: Begin *} Colour Key: <table width="100%" border="1"> <tr> <td bgcolor="#FFCCFF" name="Pink" width="129" align="middle"><div align="center">Not Finished</div></td> <td bgcolor="#009999" name="Blue" width="97" align="middle"><div align="center">Queued</div></td> <td bgcolor="#CCFFFF" name="Blue" width="119" align="middle"><div align="center">Processed</div></td> <td bgcolor="#FF0000" name="Red" width="113" align="middle"><div align="center">Failed</div></td> <td bgcolor="#CCCCCC" name="Grey" width="117" align="middle"><div align="center">Complete</div></td> </tr> </table> {* Colour Key: End *} {include file="main/check_all_row.tpl" form="processorderform" prefix="orderids"} <form action="process_order.php" method="post" name="processorderform"> <input type="hidden" name="mode" value="" /> <table cellpadding="2" cellspacing="1" width="100%"> {assign var="colspan" value=6} <tr class="TableHead"> <td width="5"> </td> <td width="5%" nowrap="nowrap">{if $search_prefilled.sort_field eq "orderid"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=orderid{if $search_prefilled.sort_field eq "orderid"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">#</a></td> <td nowrap="nowrap">{if $search_prefilled.sort_field eq "status"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=status{if $search_prefilled.sort_field eq "status"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_status}</a></td> <td width="30%" nowrap="nowrap">{if $search_prefilled.sort_field eq "customer"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=customer{if $search_prefilled.sort_field eq "customer"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_customer}</a></td> {if $usertype eq "A" and $single_mode eq ""} {assign var="colspan" value=7} <td width="20%" nowrap="nowrap">{if $search_prefilled.sort_field eq "provider"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=provider{if $search_prefilled.sort_field eq "provider"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_provider}</a></td> {/if} <td width="20%" nowrap="nowrap">{if $search_prefilled.sort_field eq "date"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=date{if $search_prefilled.sort_field eq "date"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_date}</a></td> <td width="20%" align="right" nowrap="nowrap">{if $search_prefilled.sort_field eq "total"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction} {/if}<a href="orders.php?mode=search&sort=total{if $search_prefilled.sort_field eq "total"}&sort_direction={if $search_prefilled.sort_direction eq 1}0{else}1{/if}{/if}">{$lng.lbl_total}</a></td> </tr> {section name=oid loop=$orders} {math equation="x + ordertotal" x=$total ordertotal=$orders[oid].total assign="total"} {if $orders[oid].status eq "P" or $orders[oid].status eq "C"} {math equation="x + ordertotal" x=$total_paid ordertotal=$orders[oid].total assign="total_paid"} {/if} {* Colors modification MOD *} <tr{cycle values=", class='TableSubHead'"}> <td width="5"><input type="checkbox" name="orderids[{$orders[oid].orderid}]" /></td> <td {include file="main/orders_colors.tpl"}><a href="order.php?orderid={$orders[oid].orderid}">#{$orders[oid].orderid}</a></td> <td {include file="main/orders_colors.tpl"} nowrap="nowrap"> {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")} <input type="hidden" name="order_status_old[{$orders[oid].orderid}]" value="{$orders[oid].status}" /> {if $orders[oid].goid ne ""} {assign var="is_gcheckout_orders" value="1"} {include file="main/order_status.tpl" status=$orders[oid].status mode="select" name="order_status[`$orders[oid].orderid`]" extra="disabled='disabled'"} {else} {include file="main/order_status.tpl" status=$orders[oid].status mode="select" name="order_status[`$orders[oid].orderid`]"} {/if} {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" style="vertical-align: middle;" alt="{$lng.lbl_blocked}:{$orders[oid].ip}" title="{$lng.lbl_ip_blocked|substitute:"ip":$orders[oid].ip}" /> {/if} </td> <td {include file="main/orders_colors.tpl"}>{$orders[oid].firstname} {$orders[oid].lastname} ({$orders[oid].login})</td> {if $usertype eq "A" and $single_mode eq ""} <td {include file="main/orders_colors.tpl"}>{$orders[oid].provider}</td> {/if} <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> <td {include file="main/orders_colors.tpl"}nowrap="nowrap" align="right"> <a href="order.php?orderid={$orders[oid].orderid}">{include file="currency.tpl" value=$orders[oid].total}</a> </td> </tr> {* Colors modification MOD *} {/section} <tr> <td colspan="{$colspan}"><img src="{$ImagesDir}/spacer.gif" width="100%" height="1" alt="" /></td> </tr> <tr> <td colspan="{$colspan}" align="right">{$lng.lbl_gross_total}: <b>{include file="currency.tpl" value=$total}</b></td> </tr> <tr> <td colspan="{$colspan}" align="right">{$lng.lbl_total_paid}: <b>{include file="currency.tpl" value=$total_paid}</b></td> </tr> <tr> <td colspan="{$colspan}"><br /> {include file="customer/main/navigation.tpl"} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} {if $is_gcheckout_orders eq "1"} {$lng.txt_gcheckout_order_list_status_note} <br /> <br /> {/if} <input type="button" value="{$lng.lbl_update_status|strip_tags:false|escape}" onclick="javascript: submitForm(this, 'update');" /> <br /><br /> {/if} <input type="button" value="{$lng.lbl_invoices_for_selected|strip_tags:false|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) {ldelim} document.processorderform.target='invoices'; submitForm(this, 'invoice'); document.processorderform.target=''; {rdelim}" /> {if $usertype ne "C"} <input type="button" value="{$lng.lbl_labels_for_selected|strip_tags:false|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) {ldelim} document.processorderform.target='labels'; submitForm(this, 'label'); document.processorderform.target=''; {rdelim}" /> {/if} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} <input type="button" value="{$lng.lbl_delete_selected|strip_tags:false|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) if (confirm(txt_delete_selected_orders_warning)) submitForm(this, 'delete');" /> {/if} {if $active_modules.Shipping_Label_Generator ne '' && ($usertype eq 'A' || $usertype eq 'P')} <br /> <br /> <br /> {$lng.txt_shipping_labels_note} <br /> <br /> <input type="button" value="{$lng.lbl_get_shipping_labels|strip_tags:false|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) {ldelim} document.processorderform.action='generator.php'; submitForm(this, ''); {rdelim}" /> {/if} {if $usertype ne "C"} <br /> <br /> <br /> {include file="main/subheader.tpl" title=$lng.lbl_export_orders} {$lng.txt_export_all_found_orders_text} <br /><br /> {$lng.lbl_export_file_format}:<br /> <select id="export_fmt" name="export_fmt"> <option value="std">{$lng.lbl_standart}</option> <option value="csv_tab">{$lng.lbl_40x_compatible}: CSV {$lng.lbl_with_tab_delimiter}</option> <option value="csv_semi">{$lng.lbl_40x_compatible}: CSV {$lng.lbl_with_semicolon_delimiter}</option> <option value="csv_comma">{$lng.lbl_40x_compatible}: CSV {$lng.lbl_with_comma_delimiter}</option> {if $active_modules.QuickBooks eq "Y"} {include file="modules/QuickBooks/orders.tpl"} {/if} </select> <br /> <br /> <input type="button" value="{$lng.lbl_export|strip_tags:false|escape}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) submitForm(this, 'export');" /> <input type="button" value="{$lng.lbl_export_all_found|strip_tags:false|escape}" onclick="javascript: self.location='orders.php?mode=search&export=export_found&export_fmt='+document.getElementById('export_fmt').value;" /> {/if} </td> </tr> </table> </form> {/capture} {include file="dialog.tpl" title=$lng.lbl_search_results content=$smarty.capture.dialog extra='width="100%"'} {/if}
__________________
X-Cart DB Version: 5
Reply With Quote
  #157  
Old 08-06-2009, 11:17 AM
 
rayjohnson rayjohnson is offline
 

Member
  
Join Date: Apr 2009
Posts: 17
 

Default Re: Color coded order status...

Using this mod, would it be possible to color code your order once you print the invoice?

The problem I am running into is to remember what invoice number I printed last....

Thanks,

Ray Johnson
__________________
v 4.2.1
Reply With Quote
  #158  
Old 08-06-2009, 02:21 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Color coded order status...

Quote:
Originally Posted by gotpump
Error: Warning: Smarty error: unable to read resource: "main/orders_colors.tpl" in /var/www/vhosts/sitonthis.ca/httpdocs/kink/Smarty-2.6.19/Smarty.class.php on line 1092
>#4023

Any idea what I'm doing wrong?


Is your orders_colors.tpl in skin1/main or just main? It needs to be in skin1/main.

Also, about changing the color for orders that are printed, I don't see how this is possible as you are not changing the order status when you are just printing an invoice. I guess you could make a "printed" status somehow and manually change the order status to that once you have printed the invoice, but that doesn't seem like a very realistic solution. Don't you just print them in order?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #159  
Old 08-20-2009, 12:07 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default Re: Color coded order status...

seems to work fine for me. i had the same problem as the guy above, but then i notice my .tpl was order_colors.tpl and not orders_colors.tpl.

now it works fine.

but the color key doesn't match my colors. how can I just remove the color key completely?
__________________
4.2.2
Reply With Quote
  #160  
Old 08-25-2009, 08:47 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Color coded order status...

Quote:
Originally Posted by bobbyftk
but the color key doesn't match my colors. how can I just remove the color key completely?

Just comment out or remove...
{* Colour Key: Begin *}
Colour Key:

<table width="100%" border="1">
<tr>
<td bgcolor="#FFCCFF" name="Pink" width="129" align="middle"><div align="center">Not Finished</div></td>
<td bgcolor="#009999" name="Blue" width="97" align="middle"><div align="center">Queued</div></td>
<td bgcolor="#CCFFFF" name="Blue" width="119" align="middle"><div align="center">Processed</div></td>
<td bgcolor="#FF0000" name="Red" width="113" align="middle"><div align="center">Failed</div></td>
<td bgcolor="#CCCCCC" name="Grey" width="117" align="middle"><div align="center">Complete</div></td>
</tr>
</table>
{* Colour Key: End *}

from your orders_list.tpl. You can remove the parts highlighted to comment it out, or you could change the colors to match what you have.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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:14 PM.

   

 
X-Cart forums © 2001-2020