Magento: How to change order status programmatically?
This article shows how to change your order status programmatically in Magento. First, you need to load your order. You can load order by either order_id or order_increment_id. Load order by “order id” $orderId = YOUR_ORDER_ID; $order = Mage::getModel('sales/order')->load($orderId); Load order by “order increment id” $orderIncrementId = YOUR_ORDER_INCREMENT_ID; $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId); Change order status to … Read more