VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: trevorsm on December 23, 2011, 16:14:32 PM

Title: Duplicate confirmation emails
Post by: trevorsm 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.
Title: Re: Duplicate confirmation emails
Post by: trevorsm 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?
Title: Re: Duplicate confirmation emails
Post by: alatak 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.