Hello,
I want to create a module to be able to send messages when an order changes status. Specifically when the purchase is confirmed.
My question is the following, I want to develop a module that sends an event ("update stock") when the purchase of the order is confirmed. I saw hooks but I don't know which one to use. I have thought of having a Prestashop editor in this case and a listener (a program of mine waiting for those events) for when the event arrives to update my personal database. Someone who understands hooks, which ones do I need? What if, in addition to the hooks, I need to know more about prestashop?
I am going to use zeroc ice to implement the distributed system. Link Zeroc Ice
Thanks in advance.