Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Detailed Order Management Mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 07-10-2007, 11:33 AM
 
JTheed JTheed is offline
 

Advanced Member
  
Join Date: Jun 2007
Location: South Florida
Posts: 44
 

Default Re: Detailed Order Management Mod

He did not add the color code part of the mod, it may be a seperate mod. From the way the posts are and it's the same for me, no one see's the Color's.
__________________
X-Cart V4.1.8 Gold
Reply With Quote
  #22  
Old 07-11-2007, 03:00 PM
 
mssmit mssmit is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: Detailed Order Management Mod

Detailed order management incl color mod for 4.x

orders_list.tpl (dont'forget to backup your original !!!):

Code:
{* $Id: orders_list.tpl,v 1.18.2.9 2006/11/08 12:34:25 svowl Exp $ *} {assign var="total" value=0.00} {assign var="total_paid" value=0.00} {* genbilim : Javascript functions to copy the address to the clipboard *} <script language=javascript src="../skin1/main/copy_addr.js"></script> <div id="DIV_CopyInform" style="display:none;"></div> {* genbilim-end *} {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="60" align="middle">Not Finished</td> <td bgcolor="#CCFFCC" name="Green" width="60" align="middle">Queued</td> <td bgcolor="#CCFFFF" name="Blue" width="60" align="middle">Processed</td> <td bgcolor="#CCCCFF" name="Purple" width="60" align="middle">Backordered</td> <td bgcolor="#FFFFCC" name="Yellow" width="60" align="middle">Declined</td> <td bgcolor="#FFCCCC" name="Red" width="60" align="middle">Failed</td> <td bgcolor="#CCCCCC" name="Grey" width="60" align="middle">Complete</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">&nbsp;</td> <td width="5%" nowrap="nowrap">{if $search_prefilled.sort_field eq "orderid"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}&nbsp;{/if}<a href="orders.php?mode=search&sort=orderid">#</a></td> <td nowrap="nowrap">{if $search_prefilled.sort_field eq "status"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}&nbsp;{/if}<a href="orders.php?mode=search&sort=status">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=customer">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=provider">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=date">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=total">{$lng.lbl_total}</a></td> {* genbilim New column for admins to copy the address to the clipboard *} {if $usertype eq 'A'} <td align=center width=50>Copy&nbsp;Address</td> {/if} {* genbilim-end *} </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 width="5"><INPUT type="checkbox" name="orderids[{$orders[oid].orderid}]"></TD> <TD {include file="main/orders_colors.tpl"}>#{$orders[oid].orderid}</TD> <TD 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>{$orders[oid].date|date_format:$config.Appearance.date_format}</TD> <TD {include file="main/orders_colors.tpl"} nowrap align="right"> {include file="currency.tpl" value=$orders[oid].total} </TD> {* genbilim *} {if $usertype eq 'A'} <td align=center {include file="main/orders_colors.tpl"}><a href="javascript:void(0)" ship_to="{$orders[oid].s_title}{$orders[oid].s_firstname} {$orders[oid].s_lastname}" ship_address="{$orders[oid].s_address}" ship_city="{$orders[oid].s_city}" ship_state="{$orders[oid].s_state}" ship_country="{$orders[oid].s_country}" ship_zipcode="{$orders[oid].s_zipcode}" onclick="copyShipAddr(this, false);return false;"> <img src="{$ImagesDir}/copy.gif" border=0 align=absmiddle></a></td> {/if} </TR> <tr> <td colspan=3></td> <td colspan=4> <table width=100% cellpadding=5 style="border-collapse:collapse" border=0> <tr bgcolor=#DDDDCC> <td>Product</td> <td>Code</td> <td align=center>Amount</td> <td align=center>Stock</td> </tr> {foreach item=item from=$orders[oid].item_list} <tr bgcolor=#CCCCDD> <td>{$item.product}</td> <td>{$item.productcode}</td> <td align=center>{$item.amount}</td> <td align=center>{$item.avail}</td> </tr> {/foreach} </table> </td> </tr> <TR> <TD style="padding-top:3px;border-bottom:1px solid black" colspan=12>&nbsp;</TD> </TR> <TR> <TD style="padding-top:3px;" colspan=12>&nbsp;</TD> {* genbilim-end *} </tr> {/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');" /> &nbsp;&nbsp;&nbsp;&nbsp; <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}" /> &nbsp;&nbsp;&nbsp;&nbsp; {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}" /> &nbsp;&nbsp;&nbsp;&nbsp; {/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('{$lng.txt_delete_selected_orders_warning|strip_tags}')) submitForm(this, 'delete');" /> &nbsp;&nbsp;&nbsp;&nbsp; {/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');" />&nbsp;&nbsp;&nbsp; <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}
__________________
Regards
Martijn

X-cart 4.1.8(win)
Reply With Quote
  #23  
Old 07-11-2007, 03:01 PM
 
mssmit mssmit is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: Detailed Order Management Mod

You also have to create a new file called orders_colors.tpl and put it in skin1/main

code:

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}

Status text is hardcoded so if you want you can change it for your own language

Have fun!
__________________
Regards
Martijn

X-cart 4.1.8(win)
Reply With Quote
  #24  
Old 07-11-2007, 08:12 PM
 
Kissed Studio Kissed Studio is offline
 

Member
  
Join Date: Apr 2007
Posts: 15
 

Default Re: Detailed Order Management Mod

Quote:
Originally Posted by mssmit
Detailed order management incl color mod for 4.x

orders_list.php (dont'forget to backup your original !!!):

I just installed all of this and it works great! FYI though, this should be orders_list.tpl, not php
__________________
Version 4.1.6
Download Expander
X-SpecialOffers
Reply With Quote
  #25  
Old 07-11-2007, 10:55 PM
 
mssmit mssmit is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: Detailed Order Management Mod

Quote:
Originally Posted by Kissed Studio
I just installed all of this and it works great! FYI though, this should be orders_list.tpl, not php

it was pretty late yesterday but I corrected it
__________________
Regards
Martijn

X-cart 4.1.8(win)
Reply With Quote
  #26  
Old 07-12-2007, 07:07 AM
  Pantalonas's Avatar 
Pantalonas Pantalonas is offline
 

Member
  
Join Date: Aug 2006
Posts: 28
 

Default Re: Detailed Order Management Mod

Using this orders_list.tpl the ordernumber and also the date is clickable!
Thanks Martijn for your work

{* $Id: orders_list.tpl,v 1.18.2.9 2006/11/08 12:34:25 svowl Exp $ *}
{assign var="total" value=0.00}
{assign var="total_paid" value=0.00}
{*
genbilim :
Javascript functions to copy the address to the clipboard
*}
<script language=javascript src="../skin1/main/copy_addr.js"></script>
<div id="DIV_CopyInform" style="display:none;"></div>
{* genbilim-end *}

{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="60" align="middle">Not Finished</td>
<td bgcolor="#CCFFCC" name="Green" width="60" align="middle">Queued</td>
<td bgcolor="#CCFFFF" name="Blue" width="60" align="middle">Processed</td>
<td bgcolor="#CCCCFF" name="Purple" width="60" align="middle">Backordered</td>
<td bgcolor="#FFFFCC" name="Yellow" width="60" align="middle">Declined</td>
<td bgcolor="#FFCCCC" name="Red" width="60" align="middle">Failed</td>
<td bgcolor="#CCCCCC" name="Grey" width="60" align="middle">Complete</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">&nbsp;</td>
<td width="5%" nowrap="nowrap">{if $search_prefilled.sort_field eq "orderid"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}&nbsp;{/if}<a href="orders.php?mode=search&sort=orderid">#</a></td>
<td nowrap="nowrap">{if $search_prefilled.sort_field eq "status"}{include file="buttons/sort_pointer.tpl" dir=$search_prefilled.sort_direction}&nbsp;{/if}<a href="orders.php?mode=search&sort=status">{$lng.lb l_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}&nbsp;{/if}<a href="orders.php?mode=search&sort=customer">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=provider">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=date">{$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}&nbsp;{/if}<a href="orders.php?mode=search&sort=total">{$lng.lbl _total}</a></td>

{* genbilim
New column for admins to copy the address to the clipboard *}
{if $usertype eq 'A'}
<td align=center width=50>Copy&nbsp;Address</td>
{/if}
{* genbilim-end *}
</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 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 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"><a href="order.php?orderid={$orders[oid].orderid}">{$orders[oid].date|date_format:$config.Appearance.datetime_form at}</a></td>
<TD {include file="main/orders_colors.tpl"} nowrap align="right">
{include file="currency.tpl" value=$orders[oid].total}
</TD>

{* genbilim *}
{if $usertype eq 'A'}
<td align=center {include file="main/orders_colors.tpl"}><a href="javascript:void(0)"
ship_to="{$orders[oid].s_title}{$orders[oid].s_firstname} {$orders[oid].s_lastname}"
ship_address="{$orders[oid].s_address}"
ship_city="{$orders[oid].s_city}"
ship_state="{$orders[oid].s_state}"
ship_country="{$orders[oid].s_country}"
ship_zipcode="{$orders[oid].s_zipcode}"
onclick="copyShipAddr(this, false);return false;">
<img src="{$ImagesDir}/copy.gif" border=0 align=absmiddle></a></td>
{/if}
</TR>
<tr>
<td colspan=3></td>
<td colspan=4>
<table width=100% cellpadding=5 style="border-collapse:collapse" border=0>
<tr bgcolor=#DDDDCC>
<td>Product</td>
<td>Code</td>
<td align=center>Amount</td>
<td align=center>Stock</td>
</tr>
{foreach item=item from=$orders[oid].item_list}
<tr bgcolor=#CCCCDD>
<td>{$item.product}</td>
<td>{$item.productcode}</td>
<td align=center>{$item.amount}</td>
<td align=center>{$item.avail}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
<TR>
<TD style="padding-top:3px;border-bottom:1px solid black" colspan=12>&nbsp;</TD>
</TR>
<TR>
<TD style="padding-top:3px;" colspan=12>&nbsp;</TD>
{* genbilim-end *}
</tr>
{/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|es cape}" onclick="javascript: submitForm(this, 'update');" />
&nbsp;&nbsp;&nbsp;&nbsp;
<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}" />
&nbsp;&nbsp;&nbsp;&nbsp;
{if $usertype ne "C"}
<input type="button" value="{$lng.lbl_labels_for_selected|strip_tags:fa lse|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}" />
&nbsp;&nbsp;&nbsp;&nbsp;
{/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('{$lng.txt_delete_selected_orders_warning |strip_tags}')) submitForm(this, 'delete');" />
&nbsp;&nbsp;&nbsp;&nbsp;
{/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:fa lse|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');" />&nbsp;&nbsp;&nbsp;
<input type="button" value="{$lng.lbl_export_all_found|strip_tags:false |escape}" onclick="javascript: self.location='orders.php?mode=search&export=expor t_found&export_fmt='+document.getElementById('expo rt_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 4.2.2 / PHP 5.2.9 / Webserver Apache 2.0.63 (FreeBSD) / MySQL 5.0.77
http://www.hemmaplanet.eu
Reply With Quote
  #27  
Old 09-23-2007, 11:46 AM
 
Marc Gold Marc Gold is offline
 

Member
  
Join Date: Oct 2006
Posts: 11
 

Default Re: Detailed Order Management Mod

Fantastic Mod,

One small problem for those of us that use Google Checkout. Xcart has a feature to diasble the status dropdown in admin for all Google Checkout orders because this is controlled by Google.

This mod disables this, if you would like to re-enable this feature.

your_xcart_dir/skin1/main/orders_list.tpl

Find -->

{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}


Change to ->

{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}">
{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}
{include file="main/order_status.tpl" status=$orders[oid].status mode="static"}
{/if}
__________________
www.i-point.co.uk
www.novelties4parties.co.uk - 4.1.8
www.edworthys.co.uk - 4.1.5
Inkntoner.co.uk - 4.1.8 / 4.7
ROK Universal 4.3
Displaysense - 4.2
Xcart Ver: 4.7.3
Reply With Quote
  #28  
Old 09-26-2007, 01:09 PM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Detailed Order Management Mod

Hi All

First off can i say what a fantastic mod this is, many thanks for the hard work and for sharing

Ive come across an error, i liked the idea in Post 26 about making the order number and also the date is clickable! so i copied the code from (Pantalonas post 26) and applied to the main/orders_list.tpl
Then when i checked the orders page i relise i was getting 2 error messages, the first was
Quote:
Error: Smarty error: [in main/orders_list.tpl line 40]: syntax error: unrecognized tag: $lng. lbl_customer (Smarty_Compiler.class.php, line 436) in /home/a1deano69/public_html/testcart/Smarty-2.6.12/Smarty.class.php on line 1095

The file name in the error message "testcart" is the file were iam working on my new v4.1.8
and isn't live yet....

The second error iam getting is -
Quote:
Fatal error: Call to undefined function: smarty_modifier_es() in /home/a1deano69/public_html/testcart/var/templates_c/%%8B^8B4^8B45DCD5%%orders_list.tpl.php on line 267

And i lose all the buttons below the order details - "update status" button - "invoiced for selection" button etc, they all disapear.

If however i put the orginal code back in that mssmit uploaded post 22 the error messages disappear and all works well.

I would like to make the order number and date clickable as i need to be able to add tracking info, so if anyone can work out why the code in post 26 is causing error message i would be really greatful.

Just also wanted to ask a when a customer logs into their account and decides to check previous orders, they actually get to see the "stock" levels is it possible to remove this just from the customers side, but leave it in the admin side

Many thanks Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #29  
Old 10-01-2007, 08:29 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Detailed Order Management Mod

Hi all

Ive managed to fix the errors i was getting and all is working well now, something id like to ask though, if you click "copy address" it shows the county as an abbrieviation
example i live in the county of Lincolnshire but it shows up as LIN
Is there anyway to make it show the full county name.

Many thanks Dean
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
Reply With Quote
  #30  
Old 10-05-2007, 11:12 AM
  a1deano's Avatar 
a1deano a1deano is offline
 

X-Adept
  
Join Date: Oct 2004
Posts: 745
 

Default Re: Detailed Order Management Mod

Hi all

Well regarding my message above ive managed to work out county abbrieviation and its now showing the full state/county name for this all i done was edit the orders_info.tpl so
Quote:
ship_state="{$order.s_state}"

now looks like

Quote:
ship_state="{$order.s_statename}"

And thats all i needed to do, some else ive just changed if anyone wants to know when you click on order or users it opened up on the search page first, and really how many of us really use the search box etc so i changed the url slightly.
Open admin/menu.tpl and just add ?mode=search so these two look like this

Quote:
<a href="{$catalogs.admin}/orders.php?mode=search" class="VertMenuItems">{$lng.lbl_orders}</a>

and also

<a href="{$catalogs.admin}/users.php?mode=search" class="VertMenuItems">{$lng.lbl_users}</a>

so now it take you direct to the user and orders....
__________________
--------------
V4.6.1
xcartmods - Reboot Template

X-cart - X-PDF

Altered Cart - Checkout one
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 06:49 AM.

   

 
X-Cart forums © 2001-2020