Hi Pixxi,
Unfortunately this is a problem with many e-commerce shops, one that is caused purely by users accidentally due to their own inexperience (and normally impatience! :) ).Originally Posted by Pixxi
There are ways that this could be avoided more so than they are now...
as you've said, the module could check if a Protx transaction for the shop has been recorded for that customer within the past few seconds and, if so, warn them, but the internet (or rather the TCP/IP protocol) doesn't guarantee that requests are served in any order and while the server is running the "existing order check" the duplicate order request could just be running. I would therefore have to make sure that the fact that a call to Protx is going to be made is recorded before making any such request, so that a check could be made that a call's not in progress.
This is all possible but it could again be circumvented by latency in the database SQL calls as Zen cart doesn't use transactions.
As this problem affects all Zen Cart payment methods which must communicate with other servers (as in not just record a number for manual processing later) this is something they may be fixing in a coming version.
So I'm not sure it's worth my time putting in the effort to get this particular method working?!![]()
Another method would be to insert some javascript into the form checking code to disable the submit button after it has been pressed once.
Personally I find that quite inconvenient normally, as the webmail software we use used the same idea, but I found a few times that things would mess up and I'd have to reload the whole page; I noticed recently that this functionality has been taken out of more up-to-date versions of the webmail software so I guess I wasn't the only one having difficulties with this "kludgy" attempt to fix the problem.
So all in all, due to the relative infrequency of occurance of this problem, I'd be inclined to say that this is an error that may best just be suffered and handled manually.
I'm interested in yours (and other people's) thoughts on this though.
All the best..
Conor
ceon
Bookmarks