magento Orders Add comment to order history

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You can add comment and status to order. Get order :

$orderid = 12345;
$order = Mage::getModel('sales/order')->load($orderid);

And add comment:

//$isNotify means you want to notify customer or not.

$order->addStatusToHistory($status, $message, $isNotify);
$order->save()


Got any magento Question?