How to override order info.phtml template in Magento 2?

Order/info.phtml file display all the order information regarding the order.

If you need to override the info template with your module or theme level, you can do it with ease.

Template declaration will be found from the Block class, Magento\Sales\Block\Order\Info with protected $_template variable. Continue reading “How to override order info.phtml template in Magento 2?”

How to Deletes a specified order status comment in Magento 2?

Delete Specific order status history comment in Magento 2 used to remove unnecessary comments for the order.

Remove Order Comment, First Loads a specified order status comment object by comment id, pass responses object to the delete method of the Sales module OrderStatusHistoryRepositoryInterface API. Continue reading “How to Deletes a specified order status comment in Magento 2?”

How to load a order status comment by comment id in Magento 2?

Load specific order status comment by the order status comment ID in Magento 2 to retrieve status history data.

A helpful method is public function get($commentId) from the OrderStatusHistoryRepository Interface of the Sales Module. Continue reading “How to load a order status comment by comment id in Magento 2?”