1

I need to set a function/trigger that will send response to another site (URL that I'll define, for example http://mysite.com/orders/:orderid/cancelled) from Magento - when an order status is updated OR a credit memo is created. Is that possible?

1 Answer 1

2

Did you check the Magento events? I think catalog_product_status_update and sales_creditmemo_item_save_after sound promising?

Regards

5
  • This is the right approach. However, a word to the wise -- unless he uses an asynchronous request, this could make all orders significantly slower since it's now waiting on an external service.
    – tdlm
    Sep 24, 2012 at 15:20
  • What do you mean with external service? Sep 24, 2012 at 15:21
  • "I need to set a function/trigger that will send response to another site (URL that I'll define for example mysite.com/orders/:orderid/cancelled) from Magento" -- if @Irena is referring to another site/URL different from the present URL, it would be external.
    – tdlm
    Sep 24, 2012 at 15:29
  • Ah, yes of course, you are right :). But still, using events and an observer is the Magento way to handle those things. Sep 24, 2012 at 15:32
  • Agreed! Just pointing out the risk, since yours is the right answer.
    – tdlm
    Sep 24, 2012 at 15:42

Your Answer

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