0

I have create custom order status by following below link.

https://docs.magento.com/m2/ee/user_guide/sales/order-status-custom.html

I created custom status called "Sent to Printing".

I need this to apply in between processing and complete. How this can be done?

As per the link i created the status and assigned it to "Processing" state. Is it correct?

1

I think you confuse "state" with "status" here.

"Processing" and "Complete" are states, which means that they have some functionalities associated - for example, an order that is "Complete" can not be cancelled. A status is actually just a label for a state, so you choose a status if you want to display something special to your sales manager or customer.

The state "Processing" also has a status "Processing" that is this state's default status, which means that every time an order is in the state "Processing", it will also automatically have the status "Processing".

When you want to display something else (= you want to display another status for an order in the same state), you can open this order in the backend; then scroll down to the field where you can enter comments. Above that field, you should see a dropdown menu. This menu allows to set another status. A state can only be changed by using the buttons on the top ("Create shipment", "Create invoice" and so on).

Update

To update order state & status programmatically, see here: Magento 2: How to update order status programmatically in custom module?

  • Still i am not cleared, I need to display processing status also as well as my custom status also, how that can be done? – jafar pinjar Aug 15 '18 at 10:48
  • I described how to change the status in my answer. You can only display 1 status at once, not 2 at the same time. – simonthesorcerer Aug 15 '18 at 11:01
  • can we update the order status by code programmatically? for custom statuses? – jafar pinjar Aug 15 '18 at 11:08
  • see my updated answer – simonthesorcerer Aug 15 '18 at 11:33
  • Yes that will set to processing state, how can we update to custom status? for example i am reading value from csv file with orderId and status column, how to update the status read from csv? – jafar pinjar Aug 15 '18 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.