- Posts: 166
- Thank you received: 6
Swiss QR Bill and pdf attach invoice
4 years 4 days ago - 4 years 4 days ago #345315
by jean-loup
Swiss QR Bill and pdf attach invoice was created by jean-loup
Last edit: 4 years 4 days ago by jean-loup.
Please Log in or Create an account to join the conversation.
4 years 3 days ago #345323
by nicolas
Replied by nicolas on topic Swiss QR Bill and pdf attach invoice
Hi,
Either way is not that simple.
I think the best would be to develop a third plugin which would implement the onBeforeMailPrepare event so that it could check the attachments with $mailer->getAttachments(), merge the PDF attachments with github.com/clegginabox/pdf-merger , remove them with $mailer->removeAttachment($index) and add the merged PDF with $mailer->addAttachment($path, $name)
So not impossible but there are several hours of development.
Either way is not that simple.
I think the best would be to develop a third plugin which would implement the onBeforeMailPrepare event so that it could check the attachments with $mailer->getAttachments(), merge the PDF attachments with github.com/clegginabox/pdf-merger , remove them with $mailer->removeAttachment($index) and add the merged PDF with $mailer->addAttachment($path, $name)
So not impossible but there are several hours of development.
The following user(s) said Thank You: jean-loup
Please Log in or Create an account to join the conversation.
Time to create page: 0.136 seconds