News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Duplicate confirmation emails

Started by trevorsm, December 23, 2011, 16:14:32 PM

Previous topic - Next topic

trevorsm

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

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

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.