• Abdul Samad

    (@abdul-samad-k-t)


    Hi,

    I figured out how to customize invoice number with prefix custom words. I would like to know how to include this invoice number to the order processing email on the header with the invoice attached to this email?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi,

    by default, the invoice is being attached to a separate email (customer invoice) so that this email can be resend later (without having to resend the order confirmation again and again).

    If you want to force to attach the invoice to the order confirmation, you may need to place the following snippet within your functions.php:
    https://gist.github.com/vendidero/31e5f4bc2898133be63b9aacb994a4da

    It won’t be that easy to insert the invoice number (which has not yet been generated) within the subject. You’ll need to filter the email subject through your functions.php and generate the invoice (if it does not yet exist – see the gist for that use case) beforehand. After that you may retrieve the invoice number and insert it within the subject.

    Cheers

    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    Thanks for the reply.

    This code is not working for me. I am not able to attach the pdf and also not able to get invoice number from it on processing email.

    Thanks

    • This reply was modified 5 years, 6 months ago by Abdul Samad.
    Plugin Author vendidero

    (@vendidero)

    Hi there,

    you may need to debug the code, if it doesn’t work out for you. Are you sure that the customer-processing-email is being sent? Are you using the contract confirmation setting in Germanized?

    Cheers

    Thread Starter Abdul Samad

    (@abdul-samad-k-t)

    My processing emails are working. Can I know where is contract confirmation setting in Germanized?

    Plugin Author vendidero

    (@vendidero)

    Hi there,

    you may find that setting under WooCommerce > Settings > Germanized > general > “Manually review and confirm an order before closing contract.”

    It might be useful to see a screenshot of your current settings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add customized invoice number to order processing email’ is closed to new replies.