Email attachment
-
Hi There,
I have an extra question regarding the Ready for pickup Email.
I currently use WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels pro version.
I wanted to attach the invoice to the Ready for pickup Email instead of the processing email. I spoke to WebToffee and they gave me this code:
add_filter(‘wf_pklist_alter_invoice_attachment_mail_type’,’wf_pklist_alter_invoice_attachment_mail’,10,4);
function wf_pklist_alter_invoice_attachment_mail($attach_to_mail_for, $order_id, $email_class_id, $order)
{
$attach_to_mail_for[]=’enter the custom status id here’;
return $attach_to_mail_for;
}I have changed the ‘enter the custom status id here’ and it doesn’t seem to attach it. Or is there another way of dealing with this?
Kind Regards,
Mark
- The topic ‘Email attachment’ is closed to new replies.