| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Simple way to add new order statuses | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
|
#2
|
|||||||
|
|||||||
![]() how about x-cart v4.5.*
__________________
X-Cart Version: 4.7.12 GOLD www.cheapglasses123.com prescription glasses online at discounted prices. prescriptionglassesusa.com www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
same procedure |
|||||||||
#4
|
|||||||
|
|||||||
![]() Quote:
Looking at the code in func.order.php in 4.5.5 they seem to us status "X" for x_payments and the status validity checking is done differently for X-payments (line 1686) if (!empty($active_modules['XOrder_Statuses'])) { if (!func_orderstatuses_is_valid($status)) { return; } } else { $allowed_order_status = 'IQPBDFCA'; if (!strstr($allowed_order_status, $status)) return; } I don't know where func_orderstatus_is_valid gets defined, but I guess if you use x-payments you may need to dig a bit further? Also assume you should not use Status=X for a user status.
__________________
X-Cart 4.4.5 Live X-cart 4.5.5 Live |
|||||||
|
|||
X-Cart forums © 2001-2020
|