Page 1 of 1

Order number in email subject

Posted: Tue Mar 23, 2021 10:23 am
by revamp
Anybody knows how to get the order number in the email subject?

Re: Order number in email subject

Posted: Tue Mar 23, 2021 10:35 am
by ecartz
Duplicate n_checkout.php (module, language, and template files), turn off the old module, and turn on the new. Change the translation in the new language file to have %d in the subject where you want the order ID to appear. In n_checkout, replace MODULE_NOTIFICATIONS_CHECKOUT_TEXT_SUBJECT with

Code: Select all

sprintf(MODULE_NOTIFICATIONS_CHECKOUT_TEXT_SUBJECT, $order->get_id());