View Single Post
  #1  
Old 05-06-2013, 06:26 AM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Lightbulb Simple way to add new order statuses

Hey guys,

Request to add new order statuses to X-cart is very common and I thought it will be useful to post the instructions if you want to do it yourself.

* FTP/SSH access is required.
** if you do not know what FTP is, better ask somebody else to do this
*** make backup of any file you modify

for X-cart v. 4.3+):

For example we want to add a new status: "Manually paid"

1) In Languages menu, add new language label "lbl_manually_paid" with value "Manually paid"

2) Open file "skin/common_files/main/order_status.tpl" and

after code:

<option value="P"{if $status eq "P"} selected="selected"{/if}>{$lng.lbl_processed}</option>

add

<option value="M"{if $status eq "M"} selected="selected"{/if}>{$lng.lbl_manually_paid}</option>

after code

{elseif $status eq "P"}{$lng.lbl_processed}

add

{elseif $status eq "M"}{$lng.lbl_manually_paid}

3) Open "include/func/func.order.php":

Find:

$allowed_order_status = 'IQPBDFC';

Replace with:

$allowed_order_status = 'IQPBDFCM';

* note new status "M" at the end of the list.

4) Clean templates cache and you are done.

Note: this new status will not send notifications or update inventory. This will require some additional changes to "include/func/func.order.php" Please contact Qualiteam or us for a quote.

Hope this helps.
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote