New Message Token

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
I am attempting to add a message token to the store owner notification on order.  I added the following line to MessageMAnager.cs:

tokens.Add("Order.PayMentMethod", HttpUtility.HtmlEncode(order.PaymentMethod));

and the following lines to order.cs:

        /// <summary>
        /// Gets or sets the Payment Method of current order
        /// </summary>
        public string PaymentMethod { get; set; }

The build occurs without error but publishing the changed files within \bin to my website and added the %orders.PaymentMethod% token to the message template, but when the email is sent, the message contains %orders.Paymentmethod and not "PayPal Standard" or "Check".

Any ideas what I am doing wrong?
Hace 13 años
Anyone?  Please?
Hace 13 años
you've put "order.paymentmethod" in your code,

then referenced it as "orders.paymentmethod"

maybe a simple typo?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.