Tags/topics: 
2
Answers
Vote up!
0
Vote down!

Invoice configuration

Hi Guys, what's the best way to create an invoice at the end of checkout (and make it downloadable) and send it via email? Is there any tutorial about?

Asked by: commodoreforce
on October 22, 2013

2 Answers

Vote up!
0
Vote down!

No tutorial that I have seen, but you could go to admin/commerce/config/checkout and edit the Checkout message. This supports tokens as well.

What I have done so far (includes print button for print and can be used for PDF's - the download)

Here is the source html code for you to paste in

<p><span style="line-height: 1.538em;">Thank for your order at Company Name Here!</span></p><p><span style="line-height: 1.538em;">Your order is pending review and you will be contacted when it is completed. A confirmation of your order has been sent to the email you provided. If you paid for your order via a PO or a Check, please print and attach this order form and send it with your payment to:</span></p><p><strong>Company Name</strong><br><span style="line-height: 1.538em;">Street Address</span><br><span style="line-height: 1.538em;">City State. Zip</span></p><form style="float:right;"><p style="text-align: right;"><input class="form-submit" onclick="window.print()" type="button" value="Print This Page"></p></form><p>&nbsp;</p><table border="0" cellpadding="1" cellspacing="1"><tbody><tr><td colspan="2" style="vertical-align: top;"><h2>&nbsp;</h2><h2>Billing Information</h2></td><td colspan="3" rowspan="1" style="vertical-align: top;"><h2>&nbsp;</h2><h2>Order Information</h2></td></tr><tr><td colspan="2" style="vertical-align: top;"><p>[commerce-order:commerce_customer_billing]</p><p><strong>Email: </strong>[commerce-order:mail]</p></td><td colspan="3" rowspan="1" style="vertical-align: top;"><p><strong>Order #:&nbsp;</strong>[commerce-order:order-number]</p><p><strong>Order State:</strong> [commerce-order:state]</p><p><strong>Order Date:</strong>&nbsp;[commerce-order:created]</p></td></tr></tbody></table><p>&nbsp;</p><h2>Order Review</h2><p><span style="font-size: 12px; white-space: nowrap;">[commerce-order:commerce_line_items]</span></p><p style="text-align: right;"><strong><span style="font-size: 12px; white-space: nowrap;">Total:&nbsp;</span></strong><span style="font-size: 12px; line-height: 1.538em;">[commerce-order:commerce_order_total]</span></p><p style="text-align: right;">&nbsp;</p><p style="text-align: right;">&nbsp;</p>
Travis
Answer by: Travis
Posted: Oct 22, 2013
Vote up!
0
Vote down!

hello I'm new to commerce,

install the module (commerce_billy) works but would please me:
checkout complete = add the pdf order in the email, or the link
I do not see where I put the code you could post a image?

thank you!

Answer by: thepaladin
Posted: Oct 28, 2013