Order number in email subject

Open to all! Ask other shopowners for help.
Post Reply
revamp
Member
Posts: 14
Joined: Thu Mar 04, 2021 10:47 am
Phoenix Version:
Has thanked: 5 times
Been thanked: 1 time

Order number in email subject

Post by revamp »

Anybody knows how to get the order number in the email subject?


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Order number in email subject

Post 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());


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply