Developer forum

Forum » Ecommerce - Standard features » Customer Number and Customer Name put in Email Subject

Customer Number and Customer Name put in Email Subject

Dynamicweb Employee
Myint Than Tun
Reply

Hi,

Is there any way to put the customer number and customer name in the order email subject in Shopping Cart App?

Regards,

Myint

 

 

customerNo_code.png

Replies

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Myint,

Unfortunately there is no quick replacement tags for that.

But the problem could be solved by a subscriber to the notification: Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.SendingConfirmationMail

    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.SendingConfirmationMail)]
    public class EcomCartSendingConfirmationMailObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            var sendingConfirmationMailArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Cart.SendingConfirmationMailArgs;
            sendingConfirmationMailArgs.MailMessage.Subject = "...";
         }
    }

Best regards,
Vladimir

 

 

You must be logged in to post in the forum