To retrieve latest order's comment history you can do following:
Solved: Hi, I have a problem on frontend with the sales order history info. I have added a custom order status on admin, "custom_state". In.
Magento 2 has order status history inside each order which essentially is just comments related to a order. All of them are stored in one single ...
Create a factory object for the class Magento\Sales\Model\Order\Status\History and save the object data using the Order Status History ...
$ details = array(); foreach($statusHistory as $status) { $details ...
Add Order Status History Comment to the order Magento 2. Add Custom Comment message and status for the given order in the admin Order ...
The order stats was changed successfully, but when I visited the view order page, the status dropdown of the comments history section was blank.
All comments in order status history have the same time (current time). The problem is in vendor/magento/module-sales/view/adminhtml/ ...
$comments = $order->getStatusHistoryCollection(true);. $comments now contains a collection of all the status history comments, and you can ...
Order status history interface. An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product items, billing ...