Jump to content

Messages not displayed in Order overview.


AndriusS

Recommended Posts

Hello!

 

So, the problem today is that employees can't see the messages from inside an order.

While I've noticed that there is a declaration to display them in order/helpers/view/view.tpl:

	{if (sizeof($messages))}
		<br />
		<fieldset style="width: 400px;">
		<legend><img src="../img/admin/email.gif" /> {l s='Messages'}</legend>
...

It's actually empty, as $messages is probably not set.

 

Well. I found the files that call the view.tpl, I could not find a way to assign the $messages variable myself.

Help would be appreciated :)

Link to comment
Share on other sites

Well. I have totally solved this.

Not sure if this is a bug or something. But the messages that the template wants to show are from the ps_message. When actually, what I needed (and maybe, what should have been there) was ps_customer_message, so I could see the conversation between user and employee about the order itself.

What I did in AdminOrdersController.php:

'messages' => Message::getMessagesByOrderId($order->id, true),

to

'messages' => CustomerMessage::getMessagesByOrderId($order->id, true),

And it's done. Finally.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...