Magento – Backdate Orders? Change date on manual orders

orders

When creating an order, is there anyway to select the date when the order was made.

As some orders taken offline, we want to add back into the sytem, with the correct date, so they show on the reports.

Best Answer

No, there is no way with vanilla Magento. There may be a way via some module that exists.

Programmatically if you would like to change the date of an order you can do so via:

$orderId = '100000001'; //change this to your increment id
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);

$order->setCreatedAt('2013-01-01 04:00:00'); //or whatever date you wish
$order->save();
Related Topic