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

New order ststus - 4.4.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-05-2011, 07:56 AM
 
chapel chapel is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 51
 

Default New order ststus - 4.4.x

How do I add a new order status in x-cart 4.4.x?

I have added "Shipped" to the database and modified the code as seem on the bottom of the page. The new status of "Shipped" shows in my drop down but when I save the page it reverts back to the original status.


order_status.tpl

{*
$Id: order_status.tpl,v 1.1 2010/05/21 08:32:17 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $extended eq "" and $status eq ""}

{$lng.lbl_wrong_status}

{elseif $mode eq "select"}

<select name="{$name}" {$extra}>
{if $extended ne ""}
<option value="">&nbsp;</option>
{/if}
<option value="I"{if $status eq "I"} selected="selected"{/if}>{$lng.lbl_not_finished}</option>
<option value="Q"{if $status eq "Q"} selected="selected"{/if}>{$lng.lbl_queued}</option>
{if $status eq "A" or $display_preauth}<option value="A"{if $status eq 'A'} selected="selected"{/if}>{$lng.lbl_pre_authorized}</option>{/if}
<option value="P"{if $status eq "P"} selected="selected"{/if}>{$lng.lbl_processed}</option>
<option value="B"{if $status eq "B"} selected="selected"{/if}>{$lng.lbl_backordered}</option>
<option value="D"{if $status eq "D"} selected="selected"{/if}>{$lng.lbl_declined}</option>
<option value="F"{if $status eq "F"} selected="selected"{/if}>{$lng.lbl_failed}</option>
<option value="S"{if $status eq "S"} selected="selected"{/if}>{$lng.lbl_shipped}</option>
<option value="C"{if $status eq "C"} selected="selected"{/if}>{$lng.lbl_complete}</option>
</select>

{elseif $mode eq "static"}

{if $status eq "I"}
{$lng.lbl_not_finished}

{elseif $status eq "Q"}
{$lng.lbl_queued}

{elseif $status eq "A"}
{$lng.lbl_pre_authorized}

{elseif $status eq "P"}
{$lng.lbl_processed}

{elseif $status eq "D"}
{$lng.lbl_declined}

{elseif $status eq "B"}
{$lng.lbl_backordered}

{elseif $status eq "F"}
{$lng.lbl_failed}

{elseif $status eq "S"}
{$lng.lbl_shipped}

{elseif $status eq "C"}
{$lng.lbl_complete}

{/if}

{/if}
__________________
x-cart 4.4.3
Reply With Quote
  #2  
Old 12-06-2011, 10:51 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: New order ststus - 4.4.x

You need to change include/func/func.order.php. Look for the area around where it says * This function change order status in orders table

Here is a helpful thread that talks about what you want to do.... http://forum.x-cart.com/showthread.php?t=33007
__________________
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 > Changing design



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

   

 
X-Cart forums © 2001-2020