Post by nayand » Tue Nov 30, 2010 7:10 am

I am using paypal pro aim on 1.4.9.1. If the customer clicks the final "place order' button more than once the credit card will be billed for every time they click. Any ideas?

Warning: an unusually large number of this users posts have been flagged as sarcastic. Please realize and take this into account before getting annoyed.


New member

Posts

Joined
Sun Jun 13, 2010 10:53 am

Post by imaginetech » Tue Nov 30, 2010 8:28 am

A 99% fix would be to disable the button using javascript after it has been clicked, something like:

1. Button is clicked.
2. Button is disabled.
3. Text is changed to sending... (or similar).
4. Opacity is set to 0.8.

That would provide feedback to the user and avoid the "have i clicked this right" scenario.

Probably best to ask Q or Daniel to throw it into the core.

Image
www.opencartstore.com
Get OpenCart Templates and OpenCart Modules.


User avatar
Active Member

Posts

Joined
Fri Sep 04, 2009 12:25 pm
Location - Darwin, Australia

Post by i2Paq » Tue Nov 30, 2010 7:55 pm


Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Qphoria » Tue Nov 30, 2010 8:58 pm

imaginetech wrote:A 99% fix would be to disable the button using javascript after it has been clicked, something like:

1. Button is clicked.
2. Button is disabled.
3. Text is changed to sending... (or similar).
4. Opacity is set to 0.8.

That would provide feedback to the user and avoid the "have i clicked this right" scenario.

Probably best to ask Q or Daniel to throw it into the core.
May need to be a little bit more robust I think as some forms use ajax callback and if there is an error returned, the submit button would need to be re-enabled on the ajax success. I'll see about adding that to the page load anim mod as a test subject and if it works we can see about adding to core or what not.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 25 guests