RomuGb Posted September 9, 2013 Share Posted September 9, 2013 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 More sharing options...
RomuGb Posted September 10, 2013 Author Share Posted September 10, 2013 no one ? Link to comment Share on other sites More sharing options...
m-graphix Posted November 18, 2013 Share Posted November 18, 2013 I'm interested in a solution to the same problem. Does anyone know how to change that function to get all messages instead of just the last one? Thanks Mike. Link to comment Share on other sites More sharing options...
Recommended Posts