When one of us admins on our team creates a comment on an order, I'd like to show their name right their with the comment they wrote.
This will help us know who's commenting when we see a comment has been made.
I found somewhat of a solution for this for 1.4, but we're using 1.7, and I feel using the 1.4 solution would fail us here.
If anyone could help, that would be much appreciated. Thanks all!
SOLVED:
I listened to the answer by R.S, in his earlier, shorter edit, which said to simply add this code to:
/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php
public function addCommentAction(){
......
// get the login info of current user
$_user = Mage::getSingleton('admin/session');
$user['email'] = $_user->getUser()->getEmail();
$user['firstname'] = $_user->getUser()->getFirstname();
$user['lastname'] = $_user->getUser()->getLastname();
$order->addStatusHistoryComment($data['comment'] . " Add by {$user['firstname']}", $data['status'])
->setIsVisibleOnFront($visible)
->setIsCustomerNotified($notify);
And this works perfectly!