Jump to content

Put Order ID in mail confirmation


Recommended Posts

I have tried to manage this in file PaymentModule.php ...

if ($orderStatus->send_email AND Validate::isEmail($customer->email))
                       Mail::Send(intval($order->id_lang), 'order_conf', 'Order Confirmation', $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment);



but I don't get it to work.

TropischBruin, maybe you can help me out with that?

Link to comment
Share on other sites

  • 1 month later...

Greetings all

I think it's time to clarify the issue here. The emails sent to customers are altered in two places:

1) CONTENT: /mails/your_language_folder/

2) SUBJECT: /mails/your_language_folder/lang.php

If /your_language_folder/ (eg: fr/ de/ no/ se/) is missing copy and rename the /en/ folder and translate the html and txt files to your language.

PUTTING ORDER ID IN SUBJECT FIELD
This I have tried to solve without luck. I found this post explaining how to, but it's not working. The order ID does not appear in the customers email subject field. Maybe there must be a {tag} in /mails/your_language_folder/lang.php?

Link to comment
Share on other sites


PUTTING ORDER ID IN SUBJECT FIELD


This issue was allready solved by user joachim. Posted: 10 January 2009 12:57 PM Page 1


If you read my post one more time: It's not working!

I have edited the file, I get no errors, the order ID does NOT appear in the Subject field.
Link to comment
Share on other sites

  • 8 months later...

Hi All,
to follow up on this To get the subject to change to something useful in the mail alerts module
I went to module>mailalerts>mailalerts.php

and changed line
131 to

$subject = $this->l('Order: ' .$order->id.' From: '.$customer->email);



So now the subject of new orders is Order: 33 From: [email protected]


This saves us a ton of time
Thanks
nathan

Link to comment
Share on other sites

  • 5 months later...

Hello,

I tried to use the: Mail::Send(intval($order->id_lang), ‘order_conf’, ‘Order confirmation ‘. $order->id, $data, ….

It indeed works...IN ENGLISH. For the other languages of the shop it just uses the english "Order Confirmation" but not the associated translation.

SO in plain english:
1- Without the . $order->id I get the proper translation in the subject in foreign languages
2- With the . $order->id I get the order ID but lose the associated foreign language (it uses the english)

Any idea on how to solve this? I am not sure how the code is parsing the lang.php but it reverts to english for foreign language.

Order ID in subject seems pretty standard so would appreciate any help.

Cheers

Jeff

Link to comment
Share on other sites

×
×
  • Create New...