X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add additional order status xcart 4.4.x (https://forum.x-cart.com/showthread.php?t=62296)

TBone 01-11-2012 05:38 AM

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.

JWait 01-11-2012 08:15 AM

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.


All times are GMT -8. The time now is 10:09 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.