I have just completed making an Online Shopping Website with a Shopping Cart.
When someone clicks on 'Checkout' on the shopping cart, the items are deleted from their 'Cart' database and inserted into the 'SalesHistory' database.
Now I can easily generate an email with the afterInsert Hook but the problem is below:
Sometimes (Many Times) the user will checkout more than 1 item but in the database the Order Number will be the same (See 'title' above)
Is it possible to send the details of all the same invoice numbers in 1 email. I can use HTML Editor to format the email as an invoice.
Can anyone shine some light _/\_