I have added a .swf preview for anyone who wants to see how it works. The attached file includes the script too.
I have added a .swf preview for anyone who wants to see how it works. The attached file includes the script too.
oh well,
no luck on my end with my test site.
I use a custom template and I have some other checkout button. I have to figure out how to get around so that your code works with them. I just can't work on it tonight.
When I tried it, nothing happened at all and acted as before.
Also, I have a question on installation item #2.
Should the extra code that is to be inserted replace what is after this code, or be inserted? There's a couple more lines at the end of the file and it seems as if I should put the new code over the top of it.
Can you clarify?
<<FIND THIS (near the line 36):
function button_timeout() {
document.checkout_confirmation.submit.disabled = false;>>
Jeff Michaels,
pres of Musical Creations Ltd.
This attached file should have all the files already modified just copy them to there appropriate directories. I am really new to this too sorry for not including them.
Hi Saltio,
I've been having a major problem with double-clicking the confirm order button for a while, increasing to 4 or 5 a day in the last week. I'm trying to implement your java fix, but something's not right. Nothing changes after clicking the button. I'm guessing it's with the jscript_main.php file. Here's what I have at the bottom of that file after pasting in your code:
Does that look right? Thanks for any help you can give.Code:function button_timeout() { document.checkout_confirmation.submit.disabled = false; <script type="text/javascript"> function SubmitOrderButton(){ document.getElementById("submitmain").style.display = "none"; if (navigator.appName == "Microsoft Internet Explorer") { document.getElementById("pleasewait").innerHTML = ""; document.getElementById("pleasewait").style.display = "block"; document.getElementById("pleasewait").innerHTML = "<img src='images/pleasewait.gif' alt='Please Wait'>"; } else { document.getElementById("pleasewait").style.display = "block"; } } </script> } //--></script>
Ignore the previous post. I just found the zip file you attached with the files already edited. It's working great. Thank you so much!
Saltio, thanks man, I was having this issue with my Zen 1.3.8 and it solved it! Odd this isn't included as "standard" in Zen, I was under the impression it was until I got 5 of the same order the other day because the shopper was super-excited and kept clicking the submit button, yikes!
Another satisfied customer now just to stop the b@$%***$ who have switched off Javascript!
read back to post #19
It fixed my problem last spring and the double clicking problem has never occurred again.
It's great.
I found out the original source of the problem was the use of a 3rd party template. This extra code in post #19 fixed that template.
Jeff Michaels,
pres of Musical Creations Ltd.
Just another note to say thank you for this contribution! It works perfectly and will save us a lot of time and money in charge backs for duplicate orders. Great job and thank you!
I was also having this issue, this worked great!
Thanks to all that created it!