cpuin Posted December 24, 2019 Share Posted December 24, 2019 Hi everyone, I'm trying to write a simple module.I need to get the event when the order status is change to particular state, than I should make something. Link to comment Share on other sites More sharing options...
garciasanchezdani Posted December 24, 2019 Share Posted December 24, 2019 (edited) Hi @cpuin You can add this function to your module: public function hookActionOrderStatusUpdate($params) { //make something } Remember that, for your module "makes something" in that hook, its has to be added to that hook ("action order status update"). You can add by hand in backend, in positions. Edited December 24, 2019 by garciasanchezdani (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted December 27, 2019 Share Posted December 27, 2019 On 12/24/2019 at 1:43 AM, garciasanchezdani said: Hi @cpuin You can add this function to your module: public function hookActionOrderStatusUpdate($params) { //make something } Remember that, for your module "makes something" in that hook, its has to be added to that hook ("action order status update"). You can add by hand in backend, in positions. It's best to automatically connect the hook when the module is installed. Just add the following to the install() function in the main module file $this->registerHook('hookActionOrderStatusUpdate') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now