I have a order with the 'complete' status. I need to change it to a custom status.
I tried below code;
$orderId = '1000000055';
$order = Mage::getModel('sales/order')->load($orderId, 'increment_id');
$order->setState('custom_status_code', true);
$order->save();
But that not working. Can anyone please help me to solve this issue.