Hey Team Enfold!
I add this filter to my function.php to have email attachments for woocomerce order:
add_filter( ‘woocommerce_email_attachments’, ‘my_email_attachments’, 10, 3);
function my_email_attachments ( $attachments , $id, $object ) {
if( $id === ‘customer_completed_order’){
$attachments[] = get_attached_file( 1640 );
$attachments[] = get_attached_file( 1639 );
}
return $attachments;
}
Unfortunately, I doesn’t work at all. What did I do wrong?
BR
Thomas
Hey ThomSchu,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Victoria
Hey Victoria,
ok, I will look for some help!
Thanky you :)