Hello,
My client has recently asked to modify the pdf template for the purchase orders to include their opening times and address. I seen that Salva wrote an article about customising the templates using the 'child theme' method, unfortunately we use a page builder system that doesn't support child themes (Oxygen). I've had this issue in the past and been able to simulate a child theme via a custom plugin and provide alternative templates to another plugin that produces PDFs (PDF Invoices & Packing Slips for WooCommerce) successfully.
I have been able in modifying the file directly within a dev environment, and get the result that I want, but this is not best practice and I assume would be overwritten every update? I'd rather not have to go back every update and re-apply the modifications.
Is there a specific hook I can use to do this? I reviewed the code of the plugin myself to see, but I'm struggling to find anything useful to me.