General

Know The Difference: Magento Order Status v/s Order State in Magento 2

Hello, Magento Folks, ?

Last time we learned How to enable the reCaptcha in default Magento 2. Today, I am going to explain how order state and order status is different in Magento 2. But before we go deep into that, please read our February Month Digest?

When you have chosen to build your website with Magento, you would have come across the two different columns in the sales_flat_order table, which is order state and order status. You might be wondering what those are and why they are two different things? Both seem to be the same thing.

Well, they are not the same. The order state is for Magento to understand and process the order in a defined workflow. Whereas, the order status is for store owners to understand and process the order in a workflow. You can create any number of order statuses to understand the exact order flow. One order state can have multiple order statues, but vice versa cannot be done.

Following list of order states are predefined by the Magento to understand and process orders in a defined flow,

  1. New
  2. Processing
  3. Complete
  4. Pending Payment
  5. Canceled
  6. Closed
  7. Payment Review
  8. On hold

Magento does have some of the order statuses out-of-the-box, but if you need to create more statuses, then you can definitely do so from your admin panel. Remember that you can create any number of order statuses but not the order states.

Let’s look at how to create order status from Magento backend,

1. First, log in to your Magento admin panel, then from the sidebar, go to Stores>Settings>Order Status.

2. On the top-right corner, click on the button “Create New Order Status.”

3. On the next page, fill all the necessary details like Statues Code and Status Label.

  • The Status Code should be entered in an alphanumeric format, and the Status Label should be entered that will appear to you and your customers in the frontend.

4. If you are running more than one storefronts, then each store view can have a different Label name.

5. Double-check all the details, then click on Save Status. Assign it to one appropriate order state.

For example, if you need to create multiple order statues for pending payment order state, then it may contain the following order statuses,

  • Payment pending_COD
  • Payment pending_paypal
  • Payment Pending_card
  • And many more

Now let’s look at how to assign and unassign an order status to an ordered state.

1. From the sidebar of the admin login panel, go to Stores>Settings>Order Status.

2. Next, to Create New Order Status, you will find Assign Status to State. Click on that button.

3. Select the Order Status you want to assign from the dropdown list.

4. Select the Order State from the dropdown list where order status belongs to the workflow.

5. Mark the checkboxes as per your needs and click on Save Status Assignment.

To unassign any order status from an order state, go to Stores>Settings>Order Status. In the Actions tab, click on unassign to unassign any of the order status you want.

So, this is it. By creating multiple order statuses and assigning them to one order state can make the whole task easy and simple to understand for the store owners. ?

Integrate Magento 2 Order Status extension and create endless order statuses and inform your customers for change in status.

It will encourage us to write more useful articles if you give it a thumbs up and share it with your Magento partners.

Happy Reading!?

Click to rate this post!
[Total: 10 Average: 4.6]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

How to Add Tooltip in Checkout Shipping Field in Magento 2?

Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…

3 days ago

How to Integrate and Use MongoDB with Laravel?

MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…

4 days ago

NodeJS | Callback Function

In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…

5 days ago

How to Show SKU in Order Summary in Magento 2?

Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…

7 days ago

Best Colors to Use for CTA Buttons

The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…

1 week ago

Magento 2: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

1 week ago