Dear Dynamicweb,
After upgrading to 9.7 the order confirmation fails - please see this log entry from the order log:
Order Unable to send order and receipt mails for order ORDER1411 System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.FormatError() at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.Format(String format, Object[] args) at Dynamicweb.Ecommerce.Cart.Frontend.LogEvent(Order order, String message, Object[] params) at Dynamicweb.Ecommerce.Cart.Frontend.SendMails(Order order, ModuleSettings settings, Int32 pageID) at Dynamicweb.Ecommerce.Cart.Frontend.CheckoutDone(Order order, Int32 pageID)
The problem is this line:
LogEvent(order, $"Notification mail, To: '{receiverString}', Subject: '{mailInfo.Subject}', From: '<{mailInfo.SenderMail}> {mailInfo.SenderName}'")
As this is our subject: "Your order ({OrderID})", and String.Format cannot handle the curly brackets.
Can you please replace the order id {OrderID} before logging the event or just fix the code? :-)
Best regards, Anders