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
  #101  
Old 06-02-2006, 02:00 AM
  shishapipe's Avatar 
shishapipe shishapipe is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: London
Posts: 47
 

Default

will these mods for color coding work on xcart pro 4.11

thanks in advance
__________________
Regards Maxking

SERVER: Microsoft-IIS/5.0
MYSQL Server: 4.0.18-NT
PERL: 5.006001
PHP: 4.3.6
X-CART pro: 4.3
X-AOM: 4..3
X-RMA: 4..3X-FancyCategories 4.3
Skin: Own Design
Marketing Manager Professional 3.0 Bundle
Reply With Quote
  #102  
Old 06-02-2006, 06:00 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

They should, as I mentioned, I have them workin in 4.0.18
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #103  
Old 06-22-2006, 12:34 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

With this mod, not only is the color status shown in the admin, but also on the customers end then they search for order, I would like this mod to only show up on the admin side! I have it working now but not sure how to do that any insight? Thanks a lot.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #104  
Old 06-25-2006, 01:57 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default

For 4.1.1 the code below works. Changed {if $orders[oid].status eq "I"} bgcolor="#FFCCFF"} {/if} by alru111 to I

shopcart/skin1/main/orders_colors.tpl

Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *} {if $orders[oid].status eq "I"} bgcolor="#FFCCFF"} {/if} {if $orders[oid].status eq "Q"} bgcolor="#CCFFCC"} {/if} {if $orders[oid].status eq "P"} bgcolor="#CCFFFF"} {/if} {if $orders[oid].status eq "B"} bgcolor="#CCCCFF"} {/if} {if $orders[oid].status eq "D"} bgcolor="#FFFFCC"} {/if} {if $orders[oid].status eq "F"} bgcolor="#FFCCCC"} {/if} {if $orders[oid].status eq "C"} bgcolor="#CCCCCC"} {/if}

shopcart/skin1/main/orders_list.tpl (Full Code)
Code:
{* $Id: orders_list.tpl,v 1.18.2.1 2006/04/29 09:29:06 max Exp $ *} {assign var="total" value=0.00} {assign var="total_paid" value=0.00} {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="#CCFFCC" name="Green" 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="#CCCCFF" name="Purple" width="150" align="middle"><div align="center">Backordered</div></td> <td bgcolor="#FFFFCC" name="Yellow" width="113" align="middle"><div align="center">Declined</div></td> <td bgcolor="#FFCCCC" 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}#</td> <td nowrap="nowrap">{if $search_prefilled.sort_field eq "status"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_status}</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}{$lng.lbl_customer}</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}{$lng.lbl_provider}</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}{$lng.lbl_date}</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}{$lng.lbl_total}</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} <tr{cycle values=", class='TableSubHead'"}> <td {include file="main/orders_colors.tpl"} width="5"><input type="checkbox" name="orderids[{$orders[oid].orderid}]" /></td> <td {include file="main/orders_colors.tpl"}>#{$orders[oid].orderid}</td> <td {include file="main/orders_colors.tpl"} nowrap="nowrap"> {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} {include file="main/order_status.tpl" status=$orders[oid].status mode="static"} {/if} {if $active_modules.Stop_List ne '' && $orders[oid].blocked eq 'Y'} [img]{$ImagesDir}/no_ip.gif[/img] {/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>{$orders[oid].provider}</td> {/if} <td {include file="main/orders_colors.tpl"} nowrap="nowrap">{$orders[oid].date|date_format:$config.Appearance.datetime_format}</td> <td {include file="main/orders_colors.tpl"} nowrap="nowrap" align="right"> {include file="currency.tpl" value=$orders[oid].total} </td> </tr> {/section} <tr> <td colspan="{$colspan}">[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> <tr> <td colspan="{$colspan}" align="right">{$lng.lbl_gross_total}: {include file="currency.tpl" value=$total}</td> </tr> <tr> <td colspan="{$colspan}" align="right">{$lng.lbl_total_paid}: {include file="currency.tpl" value=$total_paid}</td> </tr> <tr> <td colspan="{$colspan}"> {include file="customer/main/navigation.tpl"} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} <input type="button" value="{$lng.lbl_update_status}" onclick="javascript: submitForm(this, 'update');" /> {/if} <input type="button" value="{$lng.lbl_invoices_for_selected}" 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}" 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}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) if (confirm('{$lng.txt_delete_selected_orders_warning|strip_tags}')) submitForm(this, 'delete');" /> {/if} {if $active_modules.Shipping_Label_Generator ne '' && ($usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode))} <input type="button" value="{$lng.lbl_get_shipping_labels}" 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"} {include file="main/subheader.tpl" title=$lng.lbl_export_orders} {$lng.txt_export_all_found_orders_text} {$lng.lbl_export_file_format}: <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> <input type="button" value="{$lng.lbl_export}" onclick="javascript: if (checkMarks(this.form, new RegExp('orderids\[[0-9]+\]', 'gi'))) submitForm(this, 'export');" /> <input type="button" value="{$lng.lbl_export_all_found}" onclick="javascript: self.location='orders.php?mode=search&amp;export=export_found&amp;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}

And a view of the finished product using the above code for 4.1.1
http://www.theshisha.com/images/xcart_order_colors.jpg
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #105  
Old 06-25-2006, 02:23 PM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default

4.1.1 code for the products section.
shopcart/skin1/main/products_colors.tpl
Code:
{* $Id: products_colors.tpl,v 2.0 2004/10/31 01:44:16 ADPBoss Exp $ *} {if $products[prod].forsale eq "N"} bgcolor="#CCCCCC" {elseif $products[prod].forsale eq "Y" and $products[prod].avail eq "0"} bgcolor="#FF3333" {elseif $products[prod].forsale eq "Y" and $products[prod].avail eq "1"} bgcolor="#FFFF99" {/if}

shopcart/skin1/main/products.tpl (Full Code)
Code:
{* $Id: products.tpl,v 1.42.2.1 2006/05/15 12:24:08 max Exp $ *} {if $products ne ""} {include file="main/check_all_row.tpl" style="line-height: 170%;" form="processproductform" prefix="productids"} <script type="text/javascript"> <!-- var txt_pvariant_edit_note_list = "{$lng.txt_pvariant_edit_note_list|escape:javascript|replace:'"':'\"'}"; {literal} function pvAlert(obj) { if (obj.pvAlertFlag) return false; alert(txt_pvariant_edit_note_list); obj.pvAlertFlag = true; return true; } {/literal} --> </script> <table cellpadding="2" cellspacing="1" width="100%"> {if $main eq "category_products"} {assign var="url_to" value="category_products.php?cat=`$cat`&page=`$navpage`"} {else} {assign var="url_to" value="search.php?mode=search&page=`$navpage`"} {/if} <tr class="TableHead"> <td width="5"></td> <td nowrap="nowrap">{if $search_prefilled.sort_field eq "productcode"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_sku}</td> <td width="100%" nowrap="nowrap">{if $search_prefilled.sort_field eq "title"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_product}</td> {if $main eq "category_products"} <td nowrap="nowrap">{if $search_prefilled.sort_field eq "orderby"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_pos}</td> {/if} <td nowrap="nowrap">{if $search_prefilled.sort_field eq "quantity"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_in_stock}</td> <td nowrap="nowrap">{if $search_prefilled.sort_field eq "price"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}{/if}{$lng.lbl_price} ({$config.General.currency_symbol})</td> </tr> {section name=prod loop=$products} <tr{cycle values=', class="TableSubHead"'}> <td {include file="main/products_colors.tpl"} width="5"><input type="checkbox" name="productids[{$products[prod].productid}]" /></td> <td {include file="main/products_colors.tpl"}>{$products[prod].productcode}</td> <td {include file="main/products_colors.tpl"} width="100%">{if $products[prod].main eq "Y" or $main ne "category_products"}{/if}{$products[prod].product|truncate:35:"...":false}{if $products[prod].main eq "Y" or $main ne "category_products"}{/if}</td> {if $main eq "category_products"} <td><input type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][orderby]" value="{$products[prod].orderby}" /></td> {/if} <td {include file="main/products_colors.tpl"} align="center"><input type="text" size="9" maxlength="10" name="posted_data[{$products[prod].productid}][avail]" value="{$products[prod].avail}"{if $products[prod].is_variants eq 'Y'} readonly="readonly" onclick="javascript: pvAlert(this);"{/if} /></td> <td {include file="main/products_colors.tpl"}><input type="text" size="9" maxlength="15" name="posted_data[{$products[prod].productid}][price]" value="{$products[prod].price|formatprice}"{if $products[prod].is_variants eq 'Y'} readonly="readonly" onclick="javascript: pvAlert(this);"{/if} /></td> </tr> {/section} </table> {/if}

And a picture of what it looks like after the 4.1.1 modification (Grey means disabled)
http://www.theshisha.com/images/x-cart_product_color.jpg
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #106  
Old 06-26-2006, 02:46 AM
 
alru111 alru111 is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 244
 

Default

correction

Quote:
Originally Posted by ShishaPipeUK



{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *}
{if $orders[oid].status eq "N"} bgcolor="#FFCCFF"} {/if}
{if $orders[oid].status eq "Q"} bgcolor="#CCFFCC"} {/if}
{if $orders[oid].status eq "P"} bgcolor="#CCFFFF"} {/if}
{if $orders[oid].status eq "B"} bgcolor="#CCCCFF"} {/if}
{if $orders[oid].status eq "D"} bgcolor="#FFFFCC"} {/if}
{if $orders[oid].status eq "F"} bgcolor="#FFCCCC"} {/if}
{if $orders[oid].status eq "C"} bgcolor="#CCCCCC"} {/if}

replace with
Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *} {if $orders[oid].status eq "I"} bgcolor="#FFCCFF"} {/if} {if $orders[oid].status eq "Q"} bgcolor="#CCFFCC"} {/if} {if $orders[oid].status eq "P"} bgcolor="#CCFFFF"} {/if} {if $orders[oid].status eq "B"} bgcolor="#CCCCFF"} {/if} {if $orders[oid].status eq "D"} bgcolor="#FFFFCC"} {/if} {if $orders[oid].status eq "F"} bgcolor="#FFCCCC"} {/if} {if $orders[oid].status eq "C"} bgcolor="#CCCCCC"} {/if}
[/b]
__________________
X-Cart version 4.0.19
Reply With Quote
  #107  
Old 10-16-2006, 08:29 AM
 
kevinrm kevinrm is offline
 

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

Default Re: Color coded order status...

I tried this in 4.1.3, looks great but the individual order numbers have lost their links so I can no longer click on the order...
__________________
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
  #108  
Old 10-16-2006, 03:29 PM
 
chawla@moviesandgamesonli chawla@moviesandgamesonli is offline
 

Senior Member
  
Join Date: Mar 2003
Location: UK
Posts: 125
 

Default Re: Color coded order status...

I had this problem in Version 4.1.2 and i THINK i fixed this by changing the line:

<td {include file="main/orders_colors.tpl"}>#{$orders[oid].orderid}</td>

to

<td {include file="main/orders_colors.tpl"}><a href="order.php?orderid={$orders[oid].orderid}">#{$orders[oid].orderid}</a></td>
__________________
X-Cart 4.4.1
Reply With Quote
  #109  
Old 10-16-2006, 06:55 PM
 
kevinrm kevinrm is offline
 

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

Default Re: Color coded order status...

That did work, thanks!
__________________
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
  #110  
Old 11-16-2006, 03:06 AM
 
just wondering just wondering is offline
 

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

Default Re: Color coded order status...

The Orders colours worked fine on my Installation, thank you very much!

The Products one didn't however, as I couldn't click on any of the products to edit them once I'd changed the file. Maybe it's similar to the above problem?

Also, has anyone noticed (which they probably have) that some parts of the CODE are in bold instead of showing the <b> & </b> or is it only doing it for me?
__________________
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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:10 AM.

   

 
X-Cart forums © 2001-2020