PatriceJV Posted May 6 Share Posted May 6 (edited) Hello, I'm looking for the order number tag to insert into my email templates. The order reference tag is {order_name} which looks something like FEWMDGBWA but what I'm looking for is the number attached to the order (id_order in the ps_orders table). When we receive notice of a new order this number appears in the subject of the message. THANKS Edited May 13 by PatriceJV (see edit history) Link to comment Share on other sites More sharing options...
PatriceJV Posted May 6 Author Share Posted May 6 The answer to my question is {id_order} Link to comment Share on other sites More sharing options...
PatriceJV Posted May 13 Author Share Posted May 13 Adding {id_order} to the email template do not show Id Order of the order but the tag itself. How can I have the tag being converted into the order ID? Link to comment Share on other sites More sharing options...
PatriceJV Posted May 31 Author Share Posted May 31 I answer myself In the ps_emailalerts.php file which is in the modules/ps_emailalerts folder you must add the line '{id_order}' => $order->id, around lines 527 and 967, I added this line of code under '{order_name}' => $order->reference, If anyone can tell me how to override the module, thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now