Forums / General Questions / Double click problem

Double click problem

Locked

Views: 9,638

Results 21 to 32 of 32
This thread is locked. New replies are disabled.
21 Feb 2008, 7:28 PM
#21
saltio avatar

saltio

New Zenner

Join Date:
Apr 2005
Posts:
24
Plugin Contributions:
0

Double click problem

I have had the same problem and all the scripts to disable the confirm button didn't work and customers were still able to make double orders. But I was able to stop that using a script that hides that image and shows a progress bar when its clicked I have tested it on both FF & IE. This is not my script I just made it work for My Zen Cart its originally for Os commerce.

Best Linen, Inc.

21 Feb 2008, 7:55 PM
#22
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Double click problem

THANKS!!!
Talk about a life saver

I cannot wait to try this out tonight on my test site!!!!

:)

Jeff

Jeff Michaels,
pres of Musical Creations Ltd.

22 Feb 2008, 12:23 AM
#23
saltio avatar

saltio

New Zenner

Join Date:
Apr 2005
Posts:
24
Plugin Contributions:
0

Re: Double click problem

I have added a .swf preview for anyone who wants to see how it works. The attached file includes the script too.

Best Linen, Inc.

22 Feb 2008, 1:39 AM
#24
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Double click problem

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.

22 Feb 2008, 4:27 AM
#25
saltio avatar

saltio

New Zenner

Join Date:
Apr 2005
Posts:
24
Plugin Contributions:
0

Re: Double click problem

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.

Best Linen, Inc.

8 Jul 2008, 4:10 PM
#26
hrm avatar

hrm

New Zenner

Join Date:
Oct 2005
Posts:
95
Plugin Contributions:
0

Re: Double click problem

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:

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>

Does that look right? Thanks for any help you can give.

Heather
Results! Why, man, I have gotten a lot of results.
I know several thousand things that won't work.
----Thomas Edison

8 Jul 2008, 4:51 PM
#27
hrm avatar

hrm

New Zenner

Join Date:
Oct 2005
Posts:
95
Plugin Contributions:
0

Re: Double click problem

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!

Heather
Results! Why, man, I have gotten a lot of results.
I know several thousand things that won't work.
----Thomas Edison

13 Aug 2008, 3:15 AM
#28
davemehta avatar

davemehta

Zen Follower

Join Date:
Aug 2005
Posts:
130
Plugin Contributions:
0

Re: Double click problem

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!

19 Nov 2008, 12:34 PM
#29
ink avatar

ink

Zen Follower

Join Date:
Jul 2004
Posts:
140
Plugin Contributions:
0

Re: Double click problem

Another satisfied customer now just to stop the b@$%***$ who have switched off Javascript!

19 Nov 2008, 1:13 PM
#30
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Double click problem

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.

2 Mar 2009, 6:28 PM
#31
joepixel avatar

joepixel

New Zenner

Join Date:
May 2008
Location:
orlando, florida
Posts:
28
Plugin Contributions:
0

Re: Double click problem

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!

21 Mar 2009, 2:14 PM
#32
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
522
Plugin Contributions:
2

Re: Double click problem

I was also having this issue, this worked great!

Thanks to all that created it!

marcopolo
Zen Cart 2.2.2 | PHP 8.5.11 | MariaDB 10.11.14