Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1263513

    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

    #1263577

    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

    #1263662

    Hey Victoria,
    ok, I will look for some help!
    Thanky you :)

    #1263745

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.