View Single Post
  #1  
Old 01-11-2012, 05:38 AM
  TBone's Avatar 
TBone TBone is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 38
 

Default Add additional order status xcart 4.4.x

Because this info is spread all over the forum I thought it would be handy to add this post.

This is how you can easily add an additional order status to you xcart shop.

1. In your admin go 'language' and add a textlabel describing your additional orderstatus. For instance: lbl_send_not_payed

2. Open skin/<yourskin>/main/order_status.tpl

after
Code:
<option value="C"{if $status eq "C"} selected="selected"{/if}>{$lng.lbl_complete}</option>
add on line 23

Code:
<option value="U"{if $status eq "U"} selected="selected"{/if}>{$lng.lbl_send_not_payed}</option>

where "U" can be any other unused orderstatus identiefier.

after

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

add
Code:
{elseif $status eq "U"} {$lng.lbl_send_not_payed}

Open include/func/func.order.php

somewhere around line 1685 you'll find

Code:
$allowed_order_status = 'IQPBDFCA';

add your status identiefier (in this case "U") so it looks like:
Code:
$allowed_order_status = 'IQPBDFCAU';

that's all.

Have fun.
__________________
_____________________________________________
www.webcreatives.nl | X-Cart Shops
X-Cart Versions 4.1.x | 4.2.x | 4.3.x | 4.4.x
Parallelweg 124-14, 1948 NN BEVERWIJK
The Netherlands
Reply With Quote