Author Topic: Duplicate confirmation emails  (Read 2903 times)

trevorsm

  • Beginner
  • *
  • Posts: 27
Duplicate confirmation emails
« on: December 23, 2011, 16:14:32 pm »
After payment has been received (from Paypal say) the user is redirected back to the site and the 'Thank you for your order' page is displayed and two emails are sent, one to the customer and one to the store. If the user refreshes this page the emails are sent again!
Could cause a bit of confusion perhaps?

Edit - The duplicate emails do not list any products but just the shipping cost - even more confusing.

trevorsm

  • Beginner
  • *
  • Posts: 27
Re: Duplicate confirmation emails
« Reply #1 on: December 30, 2011, 12:21:54 pm »
Is there any way of preventing this? Could the customer_notified field in __virtuemart_orders_histories be used as a flag to prevent duplicate emails from being sent?

alatak

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2047
    • alatak.net
Re: Duplicate confirmation emails
« Reply #2 on: December 30, 2011, 18:26:55 pm »
Hi,



The customer_notified is used to send an email when the status has been changed. It is not that easy to implement your solution, because the order status is not updated when returning but when Paypal send a notification.