1

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.

  • 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
0

You need to override below template file and add disabled property

checkout\onepage\review\button.phtml

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.

| improve this answer | |
  • 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.