how to show custom error message if billing/shipping(section) address is not valid .
or
How to create an observer before save billing & shipping address on checkout page in magento?
So for that I will fire an event.
Thanks.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou 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
Mage::app()->getRequest()->getPost();
controller_action_predispatch_checkout_onepage_saveShipping
inst-ed of `controller_action_predispatch_checkout_onepage_saveShiping' i'm right? any way thank you.
Jul 10, 2014 at 9:45
All you have to add function using this observer
sales_order_place_before
When Customer click on place order this observer triggered before placing the order.
Hope this will helps:)
Try this
<events>
<customer_address_save_before>
<observers>
<easylife_model_observer>
<type>model</type>
<class>Easylife_Validation_Model_Observer</class>
<method>customAddressSaveBefore</method>
</easylife_model_observer>
</observers>
</customer_address_save_before>
</events>
sorry for correction. Now it's correct yesterday I post wrong?