• Resolved ashrafthewand

    (@ashrafthewand)


    Hello,

    Thank you for your great plugin. I like how you did it. I just need the text below to be sent at the customer invoice email:
    An invoice of $250 has been created for you on Cairo Diagnostics. You can?view?or?pay?the invoice. Please reply to this email if you have any questions about the invoice.

    I don’t need “Invoice details”, “Invoice items” or “Billing details” to be sent to the customer. I just need him to go to the website to view and pay it there.

    Is it doable?
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Brian Mutende

    (@picocodes)

    Thanks @ashrafthewand,

    Try adding the following PHP code snippet to your site:-

    do_action(
        'wpinv_email_header',
        function() {
            remove_all_actions( 'wpinv_email_invoice_details' );
            remove_all_actions( 'wpinv_email_invoice_items' );
            remove_all_actions( 'wpinv_email_billing_details' );
        }
    );
    Thread Starter ashrafthewand

    (@ashrafthewand)

    Thank you so much, Brian.

    I tried to add it to the functions.php at a Divi child theme but it got be the errors below. Please advise.

    Thank you in advance

    Your PHP code changes were rolled back due to an error on line 1098 of file wp-includes/formatting.php. Please fix and try saving again.
    
    Uncaught Error: Object of class Closure could not be converted to string in wp-includes/formatting.php:1098
    Stack trace:
    #0 wp-includes/formatting.php(4577): wp_check_invalid_utf8(Object(Closure))
    #1 wp-content/plugins/invoicing/templates/emails/wpinv-email-header.php(40): esc_html(Object(Closure))
    #2 wp-content/plugins/invoicing/includes/class-getpaid-template.php(168): include('/home/mahara1/m...')
    #3 wp-content/plugins/invoicing/includes/class-getpaid-template.php(196): GetPaid_Template->load_template('emails/wpinv-em...', '/home/mahara1/m...', Array)
    #4 wp-content/plugins/invoicing/includes/wpinv-template-functions.php(129): GetPaid_Template->display_template('emails/wpinv-em...', Array, '', '')
    #5 wp-content/plugins/invoicing/includes/wpinv-email-functions.php(21): wpinv
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customer Invoice’ is closed to new replies.