Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Final Checkout Button Message


Guest

Recommended Posts

Posted

When the web is busy or server overloaded, the final checkout in checkout_confirmation.php can take up to 30 seconds to clear and confirm the order.

 

Impatient shoppers click more than once and get their orders duplicated.

 

I have dropped in a little message next to the 'Confirm Order' button on this page like

"NOTE: Please click 'Confirm Order' button only once. Your order can take up to a minute to be processed"

 

Were this defined languages/yourlanguage.php or even admin it could be changed to reflect PayPal etc. eg. "Your are now being transferred to Paypal's secure server - hold tight."

Posted

I setup a gateway for a none oscommerce website once.

I had this same problem.. I vaguely recall doing something like

 

When they click on the button, have it call a javascript function to submit the form. You can put the javascript in the form tag, much like the contribution that removes image submit buttons

 

once they click on it, it sets a variable "formsubmit = true" and submit the form.

 

then if they click it again, check and see if this varible is true, if yes, ignore and don't resubmit.

 

I also made it submit to local page first with a message saying

"Your are being transferred to the payment gateway, this may take upto 30 seconds".

That way it quickly got them a response, and they were told to wait.

This local page automatically submitted the same data to the payment gateway.

 

This isn't a bad idea for a contribution.. certainly the javascript method would be very easy. But a quick response page might take some thought as it would have to be compatable with all payment modules..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...