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

Add additional order status xcart 4.4.x

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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

The following 2 users thank TBone for this useful post:
typeav (06-26-2012), typoguy (01-19-2012)
  #2  
Old 01-11-2012, 08:15 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Add additional order status xcart 4.4.x

You're opening a whole "can of worms". Get ready for questions on "how do I send emails using the new status?", "how do I decrement the quantity on hand with this new order status?", and other questions related to any new status type.
__________________
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:43 AM.

   

 
X-Cart forums © 2001-2020