$order = $objectManager->create('\Magento\ Sales\Model\Order')->load($orderId); $order->addStatusHistoryComment('This comment is programatically added to last order in this Magento setup'); $order-> save();
By Magento default, Comment History of order is a feature that helps us add annotations to that order by adding...
Add custom comment programmatically to order in Magento 2. Save Tweet Share . In this Article, I am going to explain how to add the custom ...
How to add Status History Comment to the order by id in Magento 2? You can add Status History Comment for the given order programmatically ...
I'm doing something similar, but not exactly the same... I've created a module where I'm adding some new custom values to the quote when ...
/blog/ add-custom-comment-programmatically-to-order-in-magento-2/.
$order->addStatusHistoryComment('This comment is programatically added to last order in this Magento setup'); $order->save();. Magento2.
You can do it like this: $history = Mage::getModel('sales/order_status_history') -> setStatus($order->getStatus()) ->setComment('My Comment!
today we will learn about How to add Status History Comment to the order by id in Magento 2? Sometimes while doing customization we have ...
Orders · Programming. Leave a comment. You made it all the way down here so you must have enjoyed this post!