Magento 2 Change Order Status Programmatically

How to change the Magento 2 order status programmatically

You can use “setState” to change the status of an order.

0 0 vote
Article Rating
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jaswinder singh
jaswinder singh
3 years ago

In the last you need to save order.
$order->save();