Jump to content

All privates messages in mail alert


Recommended Posts

Hi,

 

I'd like to get ALL the private message in the mailalerts module instead of the last one only.

 

In MailAlerts.php you have at line 275 :

 

$message = $order->getFirstMessage();

 

You only get the first message associated to the order :

 

in classes/order/order.php you have the getfirstmessage function :

	public function getFirstMessage()
	{
		return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
			SELECT `message`
			FROM `'._DB_PREFIX_.'message`
			WHERE `id_order` = '.(int)$this->id.'
			ORDER BY `id_message`
		');
	}

What modification should i make to get ALL the messages in the email ?

 

Thanks for your help.

Romuald.

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...