Totally Zenned
- Join Date:
- Nov 2003
- Posts:
- 1,878
- Plugin Contributions:
- 5
[Done v1.3.9a] Duplicate Orders/Order Confirmation
MODERATOR UPDATE: SEE FIX POSTED HERE: http://www.zen-cart.com/forum/showpost.php?p=847721&postcount=49
================
As described by Beerman:
Beer_man:
This problem is intermittent, and I have no firm idea why it happens...sometimes (perhaps 5% of the time) I get two order conformation emails (but payment is taken from the customers card only once).
There are more threads about the same issue, but I think this is the one that describes it best and lead to the solution: http://www.zen-cart.com/forum/showthread.php?t=70090
The fix is in post 30:
http://www.zen-cart.com/forum/showpost.php?p=532773&postcount=30
And post 31 fixes a typo in the same file (not related to the duplicate orders issue):
http://www.zen-cart.com/forum/showpost.php?p=532787&postcount=31
Note that this is not typical for paypal or any other payment module, and also that if you have duplicate orders all the time it's another issue.
I attached a zip to this post which includes a fixed version of /includes/modules/pages/checkout_confirmation/jscript_main.php , ready for Zen Cart 1.3.6-1.3.8 (and possibly other versions).
ZIP REMOVED, in favour of update posted here: http://www.zen-cart.com/forum/showthread.php?p=597034#post597034