How to create Magento 2 order status/order state

How to Create Order Status in Magento 2

In this article, we explain how to create Order Status and state in Magento 2. and you can learn best the ways to create a new status.

Related posts: How To Create Order In Magento 2 Admin Panel

First of all, we see the list of statuses that we have. To do this navigate Admin Panel > Sales > Orders.

 

How to create Magento 2 order status
How to create Magento 2 order status

There is a list of statuses including the date, order amount, and so on.

How to create Magento 2 order status
How to create Magento 2 order status

In this section, we have a status column that shows the status of orders.

How to create Magento 2 order status
How to create Magento 2 order status

If you intend to add new status follow the steps.
Log in Admin Panel > STORES > Settings> Order status

How to create Magento 2 order status
How to create Magento 2 order status

There is a list of predefined statuses.

How to create Magento 2 order status
How to create Magento 2 order status

To add a new status, click on the “create new status” button.

How to create Magento 2 order status
How to create Magento 2 order status

Under Order Status Information insert a Status Code. The first character for the status code must select from the letter a to z. You can’t use space for this field.

Set the Status label to identify the status set in both the Admin and storefront. You can use space for this one.

Set the Store View Specific Labels for each store view on your store.

How to create Magento 2 order status
How to create Magento 2 order status

In the next step click on the Save Status button.

How to create Magento 2 order status
How to create Magento 2 order status

Steps to Assign an Order Status to a State

Again go to the below path

STORES > Settings > Order Status
Now, you see the Magento 2 order status under the name “Under Review” in the grid.

How to create Magento 2 order status
How to create Magento 2 order status

On the Order Status window, click on Assign Status to State button.

How to create Magento 2 order status
How to create Magento 2 order status

Now you see the new window like the picture below.

How to create Magento 2 order status
How to create Magento 2 order status

Under Assignment information, select the Order Status that you want to assign which is listed by the status label.

How to create Magento 2 order status
How to create Magento 2 order status

You can select one of the states canceled, closed, complete, and so on that are in the list, in accordance with the order status for state order.

How to create Magento 2 order status
How to create Magento 2 order status

If you want to determine the selected status as a default status, enable the check tick of the Use Order Status Default option.

How to create Magento 2 order status
How to create Magento 2 order status

Checkmark the Visible On Storefront, if you want to show up order status in the storefront. Then click on the Save Status Assignment button.

How to create Magento 2 order status
How to create Magento 2 order status

As you see in the picture below, a new status has been created.

How to create Magento 2 order status
How to create Magento 2 order status

To test whether our order status works or not, we go to Sales > Orders.

How to create Magento 2 order status
How to create Magento 2 order status

The orders are shown as you see. Click on the View button like the picture.

How to create Magento 2 order status
How to create Magento 2 order status

In the Order Total section under Nots for this Order, you can view the statuses list and change the status order to the desired status.

How to create Magento 2 order status
How to create Magento 2 order status

This tutorial is finished; I hope it has been useful for you.