Add coupon code to order details and emails

If you are offering multiple coupons it can be useful to know which of them was used in an order. This code adds the coupon code to the order details and displays them in a separate row in the emails sent to the customer and admin.

Add custom row to order email table

This code will another row to the order email table to add in some regularly recurring information about the order. In this example we are including a line about the standard one year warranty.