Hello im using your busines option and also just did buy your pluging for pdf. I was thinking that when a customer would put in a order the file would be send to me. However it is send to the customer. Is there a way i can change this? I want the pdf file of the order send to me with the order conformation email as an attachment. (So it can also be to the customer but it doesnt have to be.)
I did try to change it into below but it still only goes to the customer and not the webshopowner.
If you want it to always include the invoice then use that line instead:
if(empty($data->mail_name) || empty($data->data->order_status) || !in_array($data->mail_name,array('order_status_notification','order_creation_notification'))) return;