Magento update order data using observer

Some times we may need to update/change order information like custom field, customer firstname, last name after order is placed.
We can easily to do this on the fly using success page observer “checkout_onepage_controller_success_action”.
Let’s see how we can do this.

Add this in your module config.xml file:

And then create module observer file and add below function:

Leave a Reply

Your email address will not be published. Required fields are marked *

16 − ten =