so, i testet with bakery 1.70
problem: the real invoice-part is a copy of the overview-template, its include the complete html-code from this template incl. table, tr and td, but the original customer info mail was sending as text/plain (and needs for html = text/html)
from my point there are four way's
1. if you need the invoice as a part of the info mail to the customer, you need a "realy" EMail-Template with HTML-Code, but the backend-page "payment-methods" doesnt support html-code in this form, so there is a little bit more to do
2. if you like to send the invoice as a attachement , its possible with text/plain (no changes in bakery customer mail needed) but you have to build this pdf-file in the moment between the click of the buy-button and sending the mails to customer and admin.
i'm not sure, that this is the best solution (pdf on demand) - maybe the mail-send-process was aborted
3. sending the invoice as extra html-mail (my way in a older project) - you have to send this mail with the invoice manually from the backend
needs a extra button on the backend -> order administration -> overview -> print invoice -> extra button on the bottom of this (print-)window and a new php-file with code mixed from view_invoice.php and the part to send the mail from the view_confirmation.p
very simple to build, but a lot of work, if you have a good shop - i use this way in a shop with 3 - 5 orders / day
but if you have 20 or 100 orders / day.....
if i send a mail to the customer, i save it into the database, for the overview, i read this setting and builds colored rows in the order overview, smart green for buy via invoice, light blue for paypal, light pink for invoice-mail etc
4. build a pdf
i've no luck with modules like html2pdf - my favorite converter is fpdf, but there are no updates anymore. maybe somebody has some experience with pdf-converting - if yes, only take the source code from the window "print invoice" (popup after clicking the print button in order-overview), thats the html-code
for fpdf i have a form, copy the html-source, input into my code field - finish....