Swiss QR Bill and pdf attach invoice

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
1 year 6 months 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: 1 year 6 months ago by jean-loup.

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
1 year 6 months 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.069 seconds
Powered by Kunena Forum