I am new to Magento, but what I need to do is:

after the order is saved, I have to call an external webservice and pass some order data to this service.

Where or what is the best place to do so?

thanks in advance

  • Which magento version? Every time order saved (create/update) or after place order? – Sohel Rana Sep 3 '17 at 16:34

Create custom module and call your method in sales_order_place_after event For example Your module xml


Your function

public function extraAction(Varien_Event_Observer $observer) {
    $order = $observer->getEvent()->getOrder();
    // your code here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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