You are viewing an old revision of this post, from August 16, 2018 @ 15:13:46. See below for differences between this version and the current revision.

Magento – Get comment history of the order

You can use the below code to get the comment history of the order. $orderId = 100000454 ; $order = Mage::getModel('sales/order')->loadByIncrementId($orderId); $commentsObject = $order->getStatusHistoryCollection(true); foreach ($commentsObject as $commentObj) { echo $commentObj->getComment() ." created at".$commentObj->getCreatedAt() ; }

Revisions

  • August 16, 2018 @ 15:13:46 [Current Revision] by Sharing Solution
  • August 16, 2018 @ 15:13:46 by Sharing Solution

Revision Differences

There are no differences between the August 16, 2018 @ 15:13:46 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply