fitgura Posted May 9, 2011 Share Posted May 9, 2011 Hi All!how to put the order id in the mail alerts subject?I found the row in mailalerts.php // Filling-in vars for email $template = 'new_order'; $subject = $this->l('order_name'); $templateVars = array( and change it ot order_name but it isn't work!any idea please? Link to comment Share on other sites More sharing options...
jacky75 Posted May 9, 2011 Share Posted May 9, 2011 Hi,$this->l('order_name') is a translation.You have to make something like$subject = $this->l('subject prefix, write here what you want about order #').sprintf("d", $order->id);I didn't try it, but it should work Link to comment Share on other sites More sharing options...
jacky75 Posted May 9, 2011 Share Posted May 9, 2011 Hi,sorry int the posted code I missed the code tag and it was not correct. It should be $subject = $this->l('subject prefix, write here what you want about order #').sprintf("d", $order->id); Link to comment Share on other sites More sharing options...
fitgura Posted May 9, 2011 Author Share Posted May 9, 2011 It looks loke NOT work!but thank you! Link to comment Share on other sites More sharing options...
DevNet Posted May 9, 2011 Share Posted May 9, 2011 Hi,Test this correction in the next postRegards Link to comment Share on other sites More sharing options...
DevNet Posted May 9, 2011 Share Posted May 9, 2011 The correction in post file join ...bbCode forum don't work pefectly with some code word.Regards order.txt Link to comment Share on other sites More sharing options...
fitgura Posted May 16, 2011 Author Share Posted May 16, 2011 Hi DEvNet!thanks for your code, but this is totally froze all of my ordering system!something easier could be the solution Link to comment Share on other sites More sharing options...
jayson Posted June 7, 2011 Share Posted June 7, 2011 Hi DEvNet!thanks for your code, but this is totally froze all of my ordering system!something easier could be the solution Hi there!Try this code:$subject = $this->l('New order').' '.sprintf($order->id); It helped me out! - Prestashop v1.3.1Cheers! Link to comment Share on other sites More sharing options...
fitgura Posted June 8, 2011 Author Share Posted June 8, 2011 Thanks Dude! this is works right now! Link to comment Share on other sites More sharing options...
jayson Posted June 8, 2011 Share Posted June 8, 2011 Thanks Dude! this is works right now! I'm glad I could help :-)Have Fun! Link to comment Share on other sites More sharing options...
Recommended Posts