• Hello

    I have a woocommerce site with this extension
    I would like that when I change the status of an order (personalized status), an email with the PDF of the packing slip is sent to the admin

    I know which hook I’m on for the status change, but how do I generate the pdf and send it by email?

    • This topic was modified 4 years, 5 months ago by cochii.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cochii

    (@cochii)

    Or how to save file on my server ?

    Plugin Contributor kluver

    (@kluver)

    Hi @cochii,

    Our plugin automatically picks up any email that was created by extending the WC_Email class and displays it in the ‘Attach to’ option. So if your custom order change also includes a custom email (that was created in the correct way) you should see it as an option via WooCommerce > PDF Invoices > Documents > Invoice > Attach to.

    PDFs generated as attachment to an email are temporarily stored in wp-content/uploads/wpo_wcpdf/attachments.

    If you need to store a copy of each generated PDF you will need our Professional extension. This will give you access to the ‘Keep PDF’ function that will store a copy of the PDF on the server the first time it is generated. It will then load that version each time the document is requested.

    Thread Starter cochii

    (@cochii)

    Thank you for your answer. However via Woocommerce > PDF Invoices > Documents, I don’t have the Attach to option for packing slip.. How to do this for packing slip ?

    Plugin Contributor kluver

    (@kluver)

    My apologies, I didn’t realize this was about the packing slip. You can get access to the ‘Attach to’ option for the packing slip with our Professional extension.

    Before purchasing I would first check if you see your custom email in the ‘Attach to’ option of the invoice though. If it is not showing up for the invoice it won’t show up for the packing slip.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PDF in mail’ is closed to new replies.