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.