Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Disable the order submit button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 09-25-2005, 12:33 AM
 
salsabeel salsabeel is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 132
 

Default

Does this work for 4.x?
__________________
X-Cart Platinum 4.6.5
Reply With Quote
  #12  
Old 06-01-2006, 08:16 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Any updates for 4.0.18? Still work?
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #13  
Old 06-01-2006, 08:50 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Quote:
Originally Posted by taltos1
Any updates for 4.0.18? Still work?

Yes it should work fine with 4.0.x.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #14  
Old 05-02-2007, 06:28 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: Disable the order submit button

but, i can't find the file buttons/submit_order.tpl in 4.0.x version?
Reply With Quote
  #15  
Old 05-06-2007, 08:37 AM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: Disable the order submit button

just a note. I have tried the above code. couldn't figure out why it is not working. but this simple code works.

Found

{assign var="button_href" value=$button_href|cat:" if(checkRequired()) document.checkout_form.submit();"}

and replace

{assign var="button_href" value=$button_href|cat:" if(checkRequired()) this.disabled=true; document.checkout_form.submit();"}
Reply With Quote
  #16  
Old 05-16-2007, 01:58 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default Re: Disable the order submit button

I'd like to ask if the following lines of code does the same thing as what the thread is trying to accomplish in v4.1.6. Specifically the BOLDED part.

Code:
{assign var="button_href" value=$button_href|cat:" if(checkRequired(requiredFields)) if(checkDBClick()) document.checkout_form.submit()"}
That function is the following
Code:
<script type="text/javascript"> <!-- var so_click = false; {literal} function checkDBClick() { if (so_click) return false; so_click = true; return true; } {/literal} --> </script>
From what I see it does prevent double clicking but I'd like to be sure.
__________________
4.1.8
Reply With Quote
  #17  
Old 02-27-2008, 02:13 PM
 
telimon telimon is offline
 

Advanced Member
  
Join Date: Jun 2007
Posts: 92
 

Default Re: Disable the order submit button

I'm having this double order problem as well in ver 4.1.8
Does this code work for it to resolve the problem? Could you be a bit clearer on installing? I'm not a programmer but can get around ok. Thanks
__________________
4.710
Reply With Quote
  #18  
Old 07-14-2008, 07:24 AM
 
jwpenn jwpenn is offline
 

Member
  
Join Date: Jul 2008
Posts: 13
 

Unhappy Re: Disable the order submit button

Quote:
Originally Posted by telimon
I'm having this double order problem as well in ver 4.1.8
Does this code work for it to resolve the problem? Could you be a bit clearer on installing? I'm not a programmer but can get around ok. Thanks


I too am having this issue with the duplicate orders. I have tried the code from the previous posts and does not seem to work for 4.x. Anyone ever discover a solution to this issue?
__________________
X-cart Gold
Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:57 PM.

   

 
X-Cart forums © 2001-2020