Skip to content

Magento: Reopen Canceled or Complete Order

this is magento hack how to re-open or uncancel the order, use following script, here we go

 

$order = Mage::getModel('sales/order')->load($ORDER_ID);
$order->setState(Mage_Sales_Model_Order::STATE_NEW);
$order->setStatus('pending');
$order->save();

foreach ($order->getAllItems() as $item) {
    $item->setQtyCanceled(0);
    $item->save();
}

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *