0% found this document useful (0 votes)
88 views2 pages

What Is The Difference Between Order Status and Order State

Order status and order state are different concepts in Magento. Order state refers to the internal processing state of the order, such as new, processing, complete, etc. These are fixed states used by Magento. Order status refers to additional status labels that are defined by the store owner, mapped to order states, and displayed to help understand the order flow. Multiple order statuses can map to a single order state. Order states are stored in the sales_order_status table and the association between status and state is stored in the sales_order_status_state table.

Uploaded by

Santosh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

What Is The Difference Between Order Status and Order State

Order status and order state are different concepts in Magento. Order state refers to the internal processing state of the order, such as new, processing, complete, etc. These are fixed states used by Magento. Order status refers to additional status labels that are defined by the store owner, mapped to order states, and displayed to help understand the order flow. Multiple order statuses can map to a single order state. Order states are stored in the sales_order_status table and the association between status and state is stored in the sales_order_status_state table.

Uploaded by

Santosh Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

What is the difference between order status and order state

http://stackoverflow.com/questions/9627354/what-is-the-difference-between-state-and-status-column-in-table-sales-flat-o

State is used by magento to tell if the order is new, processing, complete, holded, closed, canceled, etc.; while
Statuses are the one that YOU would be defining at the backend in System -> Order Statuses. Magento displays
order STATUSES and not STATES in the backend order detail page to let you know which status is assigned as
per your mapping. Remember, multiple statuses can be mapped with one state, while vice versa is not possible.
Consider an example, your customer places an order as Cash on Delivery, you will need something like
COD_Pending as the order status so that you know it is not yet paid. Magento will have state new for this,
which makes you unpredictable of what kind of transaction is this, COD or Prepaid. The STATUS can be
anything, as you define, for your understanding; while STATE is something which Magento needs to
understand, internally.

In short, Magento uses order state internally for processing order, whereas order status are used by store owners
to understand the exact order flow where one state can be assigned to multiple statuses.

Order States: These are fixed order states which magento uses internally to maintain order flow and show
various order actions. The fixed states are New, Processing, Pending Payment, Payment Review, On Hold,
Complete, Cancelled, Closed.
Order status are not displayed anywhere, but are used by magento internally.

Order Status: These states used for display purposes. Each states belongs a order status, and multiple states can
belong to a single order status. We can also added new states from System -> Manage Order Statuses
Order Status are defined in sales/config.xml in global -> sales -> order -> states, we add new order states from
here as well.
Order states are stored in table ‘sales_order_status’

The table ‘sales_order_status’ only has label and code for each order status.
We have another table ‘sales_order_status_label’ which defines order label per store, so different stores can
have different status labels

Another table ‘sales_order_status_state’ stores the association of order status to order state.

Return Order Management RMA


Credit Memos & Refunds

After an order has been paid for and invoiced, all of the order, or a portion of it, can be refunded by issuing a
credit memo. A credit memo differs from a refund because the amount of the credit is restored to the customer’s
account where it can be applied to future purchases, rather than returned to the customer as cash. In some cases,
a refund can be given at the same time that a credit memo is issued, just as payment can be made at the time of
invoicing.

You might also like