Hide invoice from body of "Customer Invoice" email?

This topic contains 2 replies, has 3 voices, and was last updated by  Patrik 1 month, 3 weeks ago.

  • Author
    Posts
  • #3558

    Marc
    Full Member
    Post count: 19

    I would like to just send some custom HTML (using the Email Content field) along with a .pdf of the invoice – which works great, however below the Email Content is a HTML version of the invoice – can this be disabled anywhere?

    #3561

    Kor
    Moderator
    Post count: 14705

    Hi Marc,

    Thanks for your post. I’ve forwarded this to a developer and he will attend to you asap!

    #3562

    Patrik
    Moderator
    Post count: 1532

    Hi,

    You can override the template in your currently active theme and modify it as per your requirements. You can copy the template emails/wpinv-email-user_invoice.php from Invoicing plugin to your currently active theme and comment or remove all following lines from that file:

    do_action( 'wpinv_email_invoice_details', $invoice, $email_type, $sent_to_admin );
    
    do_action( 'wpinv_email_invoice_items', $invoice, $email_type, $sent_to_admin );
    
    do_action( 'wpinv_email_billing_details', $invoice, $email_type, $sent_to_admin );

    Let me know if it works for you.

    Regards,
    Patrik

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Hide invoice from body of "Customer Invoice" email?’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.