I'm using nopcommerce 4.2. In the admin, order settings menu there is an option to attach Pdf invoices with "order completed" email. Is it possible to change this, such that it refers to the standard "order delivered" email instead?
I assume there is some adjustment to the code required. Can anyone please direct me?
Just to clarify, I'm referring to the "shipment.delivered" email where I want to attach the pdf invoice automatically. Any idea on how to achieve this?
You would need to modify the code
The routine that creates the PDF and attaches it to the Order Placed Email is
protected virtual void SendNotificationsAndSaveNotes(Order order)
Copy some of that code into
public virtual void Ship(Shipment shipment, bool notifyCustomer)
Or alternatively into
public virtual IList<int> SendShipmentSentCustomerNotification(Shipment shipment, int languageId)
Took me a while to figure my way around this one. Works perfectly now. Thanks so much for your help!