There is no %OrderNotes% token by default but you can add one in the following way:
1. Create a MessageTokenProvider which inherits the Nop.Services.Messages.MessageTokenProvider class
2. In your MessageTokenProvider override the AddOrderTokens method like this:
public override void AddOrderTokens(IList<Token> tokens, Order order, int languageId)
{
string orderNotesHtml = BuildOrderNotesHtml(order, languageId);
tokens.Add(new Token("Order.OrderNotes", orderNotesHtml, true));
base.AddOrderTokens(tokens, order, languageId);
}
Note that you will have to implement the BuildOrderNotesHtml method in a way as to meet your requirements for how the notes should look like in the message.
3. Create a DependencyRegistrar class, which implements the IDependencyRegistrar interface.
Set the Order property to some number greater than zero, for example 60, so that your DependencyRegistrar is called before the default one.
4. In the your DependecyRegistrar.Register method register your MessageTokenProvider class like this:
public void Register(ContainerBuilder builder, ITypeFinder typeFinder)
{
builder.RegisterType<MessageTokenProvider7Spikes>().As<IMessageTokenProvider>().InstancePerHttpRequest();
}
Please note that all this it is preferable to do from a plugin, and not directly in the nopCommerce code. For how to create a plugin please check the nopCommerce documentation:
https://www.nopcommerce.com/docs/77/how-to-write-a-nopcommerce-plugin.aspxHope this is useful!