Herland Posted November 11, 2014 Share Posted November 11, 2014 Hi, I'm having issues implementing {id_order} in e-mail template order_conf.html. Actually, there's {order_name} and I want to replace it with {id_order}. {order_name} displays well, but when I use {id_order}, it doesn't show the order id number, instead, it just prints as "{id_order}", as though it didn't recognize the variable.Thanks Link to comment Share on other sites More sharing options...
sinedoOo Posted November 11, 2014 Share Posted November 11, 2014 I have the same problem - I know that I must change this in PaymentModule.php. I have added: (after 563 line) '{id_numer}' => $order->id, and (after 725 line) '{id_numer}' => $order->id, And now It works, but only partially... For example order confirmation mail works, displays order ID NUMER after adding {id_number} to files in /mails/ directory, but order cancelled mail, or bankwire mail doesn't work -> these ones displays "{id_number}" in mail. What I'm missing? What I must to change? Why in one mail it works, and in others it doesn't work? That's strange for me... Link to comment Share on other sites More sharing options...
sinedoOo Posted November 11, 2014 Share Posted November 11, 2014 Ok, I figured it out -> You must edit file OrderHistory.php: (arter 292 line) add '{id_numer}' => $order->id, And It works fully now, topic to close:) Link to comment Share on other sites More sharing options...
Herland Posted November 11, 2014 Author Share Posted November 11, 2014 Thanks sinedoOo for replying I added this in PaymentModule.php and it worked: '{id_order}' => $order->id, Thanks for the other cases. Regards Link to comment Share on other sites More sharing options...
Beaniie Posted February 17, 2017 Share Posted February 17, 2017 (edited) Hey Herland, Not sure if you'll see this or not but I've tried adding the same code to PaymentModule.php, and I can't seem to get it to work. It's frustrating because I have made the change within the HTML version in the back office, but the email still prints {id_order}. I would also like to add the order ID to the subject. Any Ideas? Regards, -B Edited February 17, 2017 by Beaniie (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts