how to show custom error message if billing/shipping(section) address is not valid .


How to create an observer before save billing & shipping address on checkout page in magento?

So for that I will fire an event.


3 Answers 3


You can use the standard controller action events: 'controller_action_predispatch_' . $this->getFullActionName()

In the case of the saveBilling action the event is controller_action_predispatch_checkout_onepage_saveBilling

and for saveShipping is controller_action_predispatch_checkout_onepage_saveShiping.

You can access the values sent to that action by

  • thank you now working, Now I have trigger a web message ins-ted of showing block. i think controller_action_predispatch_checkout_onepage_saveShipping inst-ed of `controller_action_predispatch_checkout_onepage_saveShiping' i'm right? any way thank you.
    – Magento007
    Jul 10, 2014 at 9:45

All you have to add function using this observer


When Customer click on place order this observer triggered before placing the order.

Hope this will helps:)

  • I want fire after filling billing address details. which event I should use?
    – Magento007
    Jul 9, 2014 at 13:31
  • customer_address_save_before use this.
    – Charlie
    Jul 9, 2014 at 13:35
  • I will come back after tried.
    – Magento007
    Jul 9, 2014 at 13:39

Try this


sorry for correction. Now it's correct yesterday I post wrong?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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