Adding Order Status (v. 2.9x)
Currently, the orders allow for the following status types:
- On Order (the default status after an order is placed)
- Shipped (the order has been shipped)
- Back Ordered (items in that order are backordered)
- Cancelled (the order has been cancelled and will not be shipped)
If you would like to add additional order status types:
-
Open the orders.php file in the /storeadmin/ folder.
-
Around line 500, find the code:
echo "";
-
Just under that code, add the status (we are using 'Processing' as an example):
echo "";
Note that we added 'Processing' three times in that code. If you are adding a different status, replace 'Processing' with your status.
-
Around line 1246, find the code:
-
Just under that code, add this status:
where the value inside the quotes after value= is the same as the name of the status in step #3, but in lower case, and spaces are replaced with an underscore. (e.g. the status 'In Progress' would use value="in_progress")
-
Open the orders.php file in the /enc/ folder.
-
Find the line:
else if ($ordrow['Status'] == "Cancelled") $status = "We show that order #$ordnum has been cancelled.";
-
and underneath that code, add:
else if ($ordrow['Status'] == "Processing") $status = "We show that order #$ordnum is being processed.";
where the message inside the quotes after $status = is any message you'd like to display to the client when they view the Processing status. (Change "Processing" to reflect your status, if needed.) You can use $ordnum to represent the actual order number. Do not use double quotes within your message.
-
Save and reload both files.
At this point, your client should be able to select 'Processing' (or whatever types you added) as the order status, and their customers will see this value in packing slips and in the order tracking.