Email on Last Page, not Confirmation
I placed an email confirmation on the last page of the checkout (the succes page).
Also on the success page, at the very bottom of the page is code provided in these forums to clear the cart. This code (being at the bottom) allows the order confirmation to display, then clears the cart. If the person reloads the page - it shows as a blank order. (exactly what I want)
The problem I have is with the trigger for the email.
1: If I set it for when the page loads it works fine. Problem is, if the person refreshes the page it sends it again, of course with a blank receipt.
Preferred method
2: If I set it to send ONLY if the eCart object is not empty, it never sends. The email code is near the top of the page so the code to clear the cart should not intefere, but it seems to be.
Any suggestions?