Order Notifications sent to Additional Emails

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 7 ans
I've set up a some additional checkout attributes where the customer enters email addresses on the cart page which eventually I'd like to move to the OPC but for now cart is fine.

So I'm looking at OrderProcessingService.cs inside SendNotificationsAndSaveNotes and I can't figure out how to parse my checkout attributes.

TIA!

            var checkoutAttributesXml = order.CheckoutAttributesXml;
            var checkoutattributes = _checkoutAttributeParser.ParseCheckoutAttributes(checkoutAttributesXml);

            foreach (var val in checkoutattributes)
            {
                string attName = val.Name;
                string attId = val.Id.ToString();

                if (attName.ToLower().Substring(0, 5) == "email")
                {
                   string strEmail = val.???
Il y a 7 ans
Put a breakpoint around the line "string attName = val.Name;" and you'll see what data you have access to.

:)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.