Petra Pitstop Posted July 9, 2013 Share Posted July 9, 2013 Hi. My merchant email new order notification is showing the order number correctly, but the customer confirmation and other emails are both showing the order reference instead of the number. In the translations both emails show {order_name} I am using Prestashop 1.5.3.1 and the ET Wedding Theme by EGG Link to comment Share on other sites More sharing options...
PSfever.com Posted July 9, 2013 Share Posted July 9, 2013 Hi, open classes/PaymentModule.php. Now, look for {order_name}. Once you find this, add this into the array, right below. '{id_order}' => (int)($order->id), You've just defined new Smarty variable. If you go to to /mails/IsoOfYourCountry/Order_conf.html, you can change the variable {order_name} to {id_order} and it will automatically send the ID order next time you recieve an order. 1 Link to comment Share on other sites More sharing options...
PSfever.com Posted July 9, 2013 Share Posted July 9, 2013 I forgot to mention, there are two {order_name} variables, add it below both of them! And by opening Order_conf.html you've replaced the variable only in one email, not in all. There might be an easier solution, look for a free module that enables you to do whatever you want with the id order. http://www.prestashop.com/forums/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/ 1 Link to comment Share on other sites More sharing options...
Petra Pitstop Posted July 19, 2013 Author Share Posted July 19, 2013 That worked great, many thanks! Link to comment Share on other sites More sharing options...
Recommended Posts