Swiss QR Bill and pdf attach invoice

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
2 years 1 month ago #345315

Dear Support,

Any change to join as second page the Swiss QR bill to the invoice sent by mail. And to have 2 pages in the invoice sent?

I can imagine that it would be easier than to integrate directly the QR Bill info at the bottom of the invoice, on the same page...

Thanks for your help

Jean-Loup

Attachments:
Last edit: 2 years 1 month ago by jean-loup.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 1 month ago #345323

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.

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.130 seconds
Powered by Kunena Forum