we need to automatically send an invoice by the e-mail when the order is completed. Do you know how to customize the source code or write a plugin for such operation?
we need to automatically send an invoice by the e-mail when the order is completed. Do you know how to customize the source code or write a plugin for such operation?
Thanks.
You need to make plugin for that and capture OrderPaidEvent or OrderPlacedEvent whatever you want. after that generate invoice and store at your end...just send a link into email so that customer can click on link and it will be downloaded from that location.
If you decide that having a link for your customers to be able to download the pdf is fine instead of having it as an attachment, here is the code that someone gave on how to do it.