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=""> </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
|