| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
New order ststus - 4.4.x | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|