I want to disable the place order button when they meets some condition and also it alert the message when the customer click the place order button.

Help me to finish my requirement.

closed as too broad by sv3n, Siarhey Uchukhlebau, Prince Patel, brentwpeterson, liyakat Jul 27 '17 at 4:41

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I am using custom one step checkout module. In that module, the place order button is present in the review.phtml. We create a condition in the template file and check the check the condition. But the button was not disabled when my condition returns true. – chandra sekar Oct 16 '15 at 6:06
  • what is your magento version ? – MrTo-Kane Jan 3 '17 at 2:45

You need to override below template file and add disabled property


And to alert messages, need to modify code in opcheckout.js under skin\js folder.

Else you can call your custom js function in onclick event.

  • I am using custom one step checkout module. In that module the button.phtml codings not been included. The button action specified in the review.phtml file itself. – chandra sekar Oct 16 '15 at 7:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.