I've had an interesting request. Client wants to use the sales order batch print/Email form to write all candidate invoices to PDF.
I pretty much have it sussed - I can save all PDFs to a folder when the user emails and/or prints.
But I was wondering if it's possible to do neither print or email - just write to PDF.
I've added an extra override to just PDF but not sure what extra coding I need to stop printing or emailing.
I don't think this is particularly important as it's PDFing anyway when emailed or printed so the client may just have to live with it but they may insist on purely writing PDF files.
Plugin attached.