How to create a shopping cart receipt?

How and where can I create an order/payment receipt? There’s an email default that looks terrible, need to find a template/form to change it. Any clues?