Jump to content

Email template tags


Recommended Posts

Posted (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 by PatriceJV (see edit history)
Link to comment
Share on other sites

  • PatriceJV changed the title to Email template tags
  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...