Order Email and PDF

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
We have created a plugin that allows the customization of garments for end users, What im now looking at is the Email and the PDF so that the order shows the products with our embellishments on there.

I have found the PDF service and will use an Action Filter to override this an get the info we want on there, However I cannot find where the HTML email is generated after the order is placed?

Thanks
5 years ago
The OrderPlaced.CustomerNotification email is based on a message template so you can search backwards from this info to find the routine that generates and sends the email

i.e searching for

        public const string OrderPlacedCustomerNotification = "OrderPlaced.CustomerNotification";

is used in nopCommerce_4.10_Source\Libraries\Nop.Services\Orders\OrderProcessingService.cs

        /// <summary>
        /// Send "order placed" notifications and save order notes
        /// </summary>
        /// <param name="order">Order</param>
        protected virtual void SendNotificationsAndSaveNotes(Order order)
....
            var orderPlacedCustomerNotificationQueuedEmailIds = _workflowMessageService
                .SendOrderPlacedCustomerNotification(order, order.CustomerLanguageId, orderPlacedAttachmentFilePath, orderPlacedAttachmentFileName);
5 years ago
Thanks for that! So they are stored in the DB as templates, i'll look at creating our own and using from there, thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.