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
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.
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
My processing emails are working. Can I know where is contract confirmation setting in Germanized?
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.