Hi,

In drupal commerce , the continue buttons in the checkout process once they are clicked are disabled to avoid double clicks.But I need to add field validations in checkout page.After throwing error , the form is not proceeding even after entering the correct inputs, the continue button stays disabled.Please advise what can be done in this?

Comments

rszrama’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Closed (won't fix)

If you're adding client-side field validation, whether through HTML5 properties or JavaScript, then you'll just have to disable that functionality or re-enable the button yourself.

sowmya.sreenivasan’s picture

Thanks for your reply.I am having an option to checkout as guest in my website.The mandatory field validations are added using field API.The issue I am facing is due to the script in 'profiles\commerce_kickstart\modules\contrib\commerce\modules\checkout\commerce_checkout.js'.I have used commerce kickstart.Shall I re-enable myself in such also

Thanks

rszrama’s picture

Yeah, this has come up in the past with respect to client side validation, and the solution is either to disable that behavior or re-enable the button if client side validation fails.

sowmya.sreenivasan’s picture

Is there option to disable that behavior from admin side or patch for checkout module.

rszrama’s picture

You'd have to write it; I'm not aware of any public patch.