How to Create Magento 2 Order Status & Order State
The Magento 2 orders have an order status that is linked with a state in the order processing flow. When there are thousands of orders to be managed, the correct idea of Magento 2 Order status and order state and the steps to create them can be helpful.
Difference between Order Status & Order State in Magento 2:
Magento 2 order state is the position of the order in the current processing workflow.
Pre-defined Order State:
- New
- Processing
- Complete
- Pending Payment
- Cancelled
- Closed
- Payment Review
- On hold
- Fraud
However, for order status, you can create Magento 2 custom order status too. Each order state can have more than one order statuses assigned to it for making things simpler! The status of each order is displayed in the Status column of the Order grid in the backend.
Understand the below order status workflow:
Source: Magento Tech Resources
Steps to Create Magento 2 Order Status & Order State:
- Login to admin panel
- Go to Stores > Settings > Order Status
- Click “Create New Status“
- Under Order Status Information,
- If you need any labels for different store views, enter it in the Store View Specific Labels section as shown here:
- Click Save Status
Steps to Assign An Order Status to a State:
- On the Order Status page, click “Assign Status to State“
- Under Assignment Information,
- Order Status – Select the order status that you want to assign which are listed by status label
- Order State – Set Order State to the place in the workflow where the order status belongs.
- Visible on StoreFront – Tick the checkbox if you want to make this status visible from the frontend.
- Click Save Status Assignment
Steps to Edit Order Status in Magento 2:
- Click on the Order Status that you want to edit from the backend Order grid
- Change the order status settings as required
- Click Save Status
Steps to Remove Order Status from an assigned state:
- Consider the Order Status you want to unassign on the Order Status grid.
- Click on the Unassign link in the Action column.
The terms can be tricky but you can always reach out using the Comments section for the doubts. Likewise change order status programmatically in Magento 2 for example a custom order status “printed”. When the admin prints out the packing slip, the order status is changed to “printed. You can also create order in Magento 2 admin panel and assist your customers in placing order when they need.
I’d be happy to help you out.
Also, do not forget to share the post with the Magento community via social media.
Thank you. Likewise you can also create an attribute for custom order in Magento 2 which will be seen in admin grid and will be helpful in your business to manage and fulfill online orders efficiently.
Also read:
- How to Get Order Status Label in Magento 2
- How to Configure Magento 2 Custom Order Number Extension
- How to Make Order Status on Frontend in Magento 2
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
How to Install Magento SUPEE 11346 [With or Without SSH]
How To Create Grouped Products in Magento 2
Next