Jump to content

[Solved] how to put order id to the mailalert email subject?


Recommended Posts

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

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

  • 4 weeks later...
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.1

Cheers!

Link to comment
Share on other sites

×
×
  • Create New...