| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Disable the order submit button | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Disable the order submit button
There was a piece of code on the forum before the site went down that explained how to code the "submit order" button so that it becomes disabled after the customer presses it once. This will stop them from pressing it multiple times and causing duplicate orders.
Can this be posted again? Thanks... |
|||||||
#2
|
|||||||||
|
|||||||||
Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Is this code just placed anywhere in the template? I am confused.
__________________
Gman X-Cart Gold 4.6.0 |
|||||||
#4
|
|||||||
|
|||||||
Take a look at the code closely, the comments at the top explain it.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Ryan,
What I am seeing is: Code:
__________________
Gman X-Cart Gold 4.6.0 |
|||||||
#6
|
|||||||
|
|||||||
Anyone feel free to jump in on this please.
__________________
Gman X-Cart Gold 4.6.0 |
|||||||
#7
|
|||||||||
|
|||||||||
All code under this can go anywhere in your checkout.tpl file.
Code:
This part needs to replace the anchor code (<A HREF..> until the included buttons/submit.tpl file.) Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#8
|
|||||||
|
|||||||
Thanks all but the problem appears to be AFTER the checkout button is pushed and when they press the credit card button.
__________________
Gman X-Cart Gold 4.6.0 |
|||||||
#9
|
|||||||
|
|||||||
I'm not sure what buttons you are talking about, I only see a checkout button, then a continue button on the payment selection type, then the submit order button.
Anyway, here is the code in case this helps. This disables the submit order button after it is pressed. >>>>>>>>>>>>> You said you are using version 3.5.12. I could only find a release with the version of 3.5.1. I never installed the 3.5.1 version but I did install the patch on the 3.5.4 version. I compared the checkout.tpl files for both versions (3.5.4 and 3.5.1) and they are exactly the same. I have included a version of the checkout.tpl file with the patch already applied. You can either replace your checkout.tpl file or do a file comparison and make your own changes. Hope this helps... Code:
__________________
X-Cart Gold: v4.0.17 |
|||||||
#10
|
|||||||
|
|||||||
dsparks,
I to see a continue button where you choose payment then continue to the next page. The first code above seems to replace that button, but I do not believe that is the button having the problem. I think it is the one on the credit card info page the one marked "Submit order" which is really the order button that is getting wacked twice.
__________________
Gman X-Cart Gold 4.6.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|