domorodecmezilidmi Posted January 26, 2015 Share Posted January 26, 2015 (edited) Hi guys, can I ask you please just simple thing - if customer put note during order process I need this note to be seen in order confirmation. I have put there this {message} but all what I see is only this word but not what customer put there. Where could be issue? Hi guys, can I ask you please just simple thing - if customer put note during order process I need this note to be seen in order confirmation. I have put there this {message} but all what I see is only this word but not what customer put there. Where could be issue? Edited January 26, 2015 by domorodecmezilidmi (see edit history) 2 Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted January 26, 2015 Author Share Posted January 26, 2015 I have found this so will try :https://www.prestashop.com/forums/topic/109873-customer-message-in-customer-confirmation-email/ 1 Link to comment Share on other sites More sharing options...
NemoPS Posted January 26, 2015 Share Posted January 26, 2015 That should work You need to assign the variable so it can be replaced with the real value Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted January 26, 2015 Author Share Posted January 26, 2015 It really works and I managed it. Thanks much. Link to comment Share on other sites More sharing options...
Stofferdreng Posted July 3, 2015 Share Posted July 3, 2015 I can'øt get this to work on 1.6. Can anyone help ? BR Christopher Link to comment Share on other sites More sharing options...
PeterWesson Posted July 9, 2015 Share Posted July 9, 2015 Hi Christopher, the solution above works just fine in Prestashop 1.6. Did you change order_conf.html template in your theme (themes/your-theme/email)? That's the only problem I can think of right now. Can you share what have you tried so far? Link to comment Share on other sites More sharing options...
soonflex Posted June 8, 2016 Share Posted June 8, 2016 Hi, i still have problem with {message} template var in Prestashop 1.6. In classes/PaymentModule.php I added: $customer_message = $order->getFirstMessage(); '{message}' => $customer_message and in /themes/my_theme/mails/ i put {message} tag.And it still doesn't work. I am getting mails with not parsed {message} tag. Link to comment Share on other sites More sharing options...
soonflex Posted October 20, 2016 Share Posted October 20, 2016 You can do it by using the PaymentModule.php class located in ./classes Search for this sentence : // Order is reloaded because the status just changed // Order is reloaded because the status just changed $order = new Order($order->id); //add this $customer_message_nka=nl2br($order->getFirstMessage()); And in the data array add your message: $data = array( '{firstname}' => $this->context->customer->firstname, '{lastname}' => $this->context->customer->lastname, '{email}' => $this->context->customer->email, '{delivery_block_txt}' => $this->_getFormatedAddress($delivery, "\n"), '{invoice_block_txt}' => $this->_getFormatedAddress($invoice, "\n"), '{delivery_block_html}' => $this->_getFormatedAddress($delivery, '<br />', array( 'firstname' => '<span style="font-weight:bold;">%s</span>', 'lastname' => '<span style="font-weight:bold;">%s</span>' )), '{invoice_block_html}' => $this->_getFormatedAddress($invoice, '<br />', array( 'firstname' => '<span style="font-weight:bold;">%s</span>', 'lastname' => '<span style="font-weight:bold;">%s</span>' )), '{delivery_company}' => $delivery->company, '{message}'=>$customer_message_nka, // the array continue. But just add '{message}'=>$customer_message_nka, And use {message} in themes/your_theme_name/mails/en/order_conf.html Did you read my post? You you repeated the same what I wrote... Link to comment Share on other sites More sharing options...
Recommended Posts