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.
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.
When the order is completed an email is automatically sent to the customer. You can add an extra email recipient using this code.
This code sends an email to admin to advise of every new customer account created.