From my module I added a block with a checkbox into checkout_onepage_review. Now I could like to make sure this checkbox was selected. Therefor I am observing the sales_order_place_after event where I can capture the result.

How do I use the the Magento JavaScript validator in the last checkout step (review).

If I add class="checkbox required-entry" nothing happens because the button uses review.save() which does not call the validator. Also it does not send my checkbox value...


1 Answer 1


rather then observing event you can also add validation class="checkbox required-entry"

  • Thank you. I tried this but nothing happens if I don't check the box. Commented Nov 21, 2013 at 9:40
  • but after sales_order_place_after you can not go the back to the form because order is already placed but you can also check with sales_order_place_before to check checkbox is check or not
    – Keyur Shah
    Commented Nov 21, 2013 at 9:51
  • Problem with required-entry is that the button function review.save() does not use a validator because normally there is no need to. I got to add this somehow... Commented Nov 21, 2013 at 9:56
  • you can check with this event sales_order_place_before put observer and check check-box is check or not
    – Keyur Shah
    Commented Nov 21, 2013 at 10:11
  • follow this link techflirt.com/magento-event-observer-hook-in-magento it may help you
    – Keyur Shah
    Commented Nov 21, 2013 at 10:12

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