Hide invoice from body of "Customer Invoice" email?

This topic contains 2 replies, has 3 voices, and was last updated by  Patrik 4 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3558

    Marc
    Buyer
    Post count: 22

    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: 16516

    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: 1971

    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)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket