My code :
<?php
require_once('app/Mage.php');
umask(0);
Mage::app();
// try{
$orders = Mage::getModel('sales/order')->load('10');
foreach ($orders as $order) {
$orderComments = $order->getAllStatusHistory();
print_r($orderComments);
}
// }catch(Exception $e){
// echo $e->getMessage();
// }
How to get Comments History of the order?
Status : Pending-> Processing-> Awaiting Shipment-> Shipped-> Complete
Best Answer
Please check below code
To show only status,created_at, entity_name Please check below code.
You get output like below array.
Hope it will work for you.