Insert Current Time in Message Template

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hi, I am using nop 1.8 and I want to insert the current time into the OrderPlaced.CustomerNotification message template, but there isn't a Message Token for "current time".

Any advise on how I can perform this relatively simple tasks?

Thank you.
13 年 前
I have done such things in 1.90, maybe it can help you.
Everything is in
MessageService
:
- find the
ReplaceMessageTemplateTokens()
corresponding to your notification (F12 / Shift + F12 are your friends in VS to find definition / references)
- add
tokens.Add("[NEW TOKEN]", [VALUE]);

- possibly, complete
GetListOfAllowedTokens()

Regards,
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.