Hi,
Is there any way to put the customer number and customer name in the order email subject in Shopping Cart App?
Regards,
Myint
Hi,
Is there any way to put the customer number and customer name in the order email subject in Shopping Cart App?
Regards,
Myint
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