I did a 'view source' to make sure I saw the change in the javascript. It's the new one, and the btn_submit matches the form code too. It doesn't prevent two submits!
Printable View
I did a 'view source' to make sure I saw the change in the javascript. It's the new one, and the btn_submit matches the form code too. It doesn't prevent two submits!
...the view source shows the javascript content is commented out! I can't find out where this is included or commented out yet.
Hi all,
Has anyone found a confirmed fix for this problem?
My store has started duplicating orders from PAYPAL today...
I receive (2) orders with unique order numbers in my backend,
also (2) confirmations to my email but only one payment is submitted
from paypal (which is a bit reassuring)
But all in all its a very weird problem because i didn't change anything at all...
My main concern is messing up my stock counts because i rely on
zen cart to track my inventory. :shocking:
I havn't tried any of the fixes on this thread yet due to little feedback..
Just want to be sure before i start messing with code.
Thanks to everyone in advance.
Some thing is strange in the file, line 11 or 12....
PHP Code:
<?php
/**
* jscript_main
*
* @package page
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
* @version $Id: jscript_main.php 3234 2006-03-21 20:13:20Z drbyte $
*/
?>
<script language="javascript" type="text/javascript"><!--
var submitter = null;
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=280,screenX=150,screenY=150,top=150,left=150')
}
function submitFunction($gv,$total) {
if ($gv >=$total) {
submitter = 1;
}
}
function submitonce(){
if (document.checkout_confirmation.btn_submit) {
document.checkout_confirmation.btn_submit.disabled = true;
setTimeout('button_timeout()', 4000);
/* document.checkout_confirmation.submit(); */
}
}
function button_timeout() {
document.checkout_confirmation.btn_submit.disabled = false;
}
/
PayPal is the only payment option in my two stores where I saw this yesterday. Do you have other payment methods that did not cause this to happen? If so, that would be very interesting. I too changed nothing in either of the client's stores where I saw this happen yesterday.
I also have had this problem for the first time today on ZC 1.37
I have Paypal IPN and Nochex as payment options, and the problem only seems to be with Paypal.
Two order numbers were created, with identical time stamps, and transaction ID's, but only one payment received.
I have only had the one Paypal order this weekend, so I will see if it continues to happen.
The PayPal issue is a system bug on the PayPal end, which was resolved this morning: http://www.pdncommunity.com/pdn/blog...sage.uid=92385