Every order has a status. This status summarises where along the process the order is.
As you can see below there are four default statuses on installation. These statuses are used by SimpleCart by default, but you can add custom ones or change the title of the existing ones through Extras > SimpleCart > Administer on the Statuses tab.
- Draft: This status is used by new orders, created by you via the MODX Manager
- New order: This is the status on new orders being placed by customers.
- Finished order: This is the status that will be set to the order when the order was placed and payment was received.
- Payment failed: This status will be used when the payment failed. The order log typically contains more information about why the payment failed if this happens.
Creating a new status
It's easy to add new order statuses to the above list. Just hit the Create button and fill in the form that pops up.
When you create a new status you will notice you have to enter a name and a title.
The name a unique reference for the status. It should be unique, lowercase, without spaces or non-standard characters, and cannot be changed once it is created.
The title is what the status is shown as. This is stored as a lexicon (you can switch the language to see translations) and can change.
Every status can also have a default message. This is meant to be the default message that is sent to the customer when the order status is updated. By filling in a default message, it will appear automatically when changing the order status.
This default message can also contain placeholders like
Overriding default statuses
To override the status that's used by SimpleCart in the checkout process, you have to create your own status and use the name (reference) as value for a new MODX System Setting. These settings are not created automatically.
Let's say you want to give all new orders a status "processing" instead of "new". Below the steps to take;
- Create a new status, with the name
- Go to your MODX System Settings and select
simplecartfrom the namespaces list
- Add a new setting with the key
- Fill the value with the name of your new status (
processingin this example)