Denton Posted July 1, 2018 Share Posted July 1, 2018 (edited) Hi all, I'm working to a custom module but I've got a problem that I don't understand. I'm tring to use the hook ActionProductUpdate, but it seems never called. I can see the hook correctley registred into DB with my module, but when I save the product the hook doesn't work, In debug mode I don't see the ActionProductUpdate call! Have you got any ideas? Thanks to all for help public function install() { if (!parent::install() || ! $this->registerHook('displayAdminProductsExtra') || ! $this->registerHook('actionProductUpdate') ) { return false; } return true; } public function hookActionProductUpdate($params) { die(); } Edited July 2, 2018 by Denton (see edit history) Link to comment Share on other sites More sharing options...
ahmed elnoor Posted August 8, 2018 Share Posted August 8, 2018 (edited) just do your logic in hookActionProductUpdate function because update action working with ajax and you cant make break point Edited August 8, 2018 by ahmed elnoor (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted August 24, 2018 Share Posted August 24, 2018 Same here. No solution, yet? Link to comment Share on other sites More sharing options...
Jose FG Posted October 21, 2019 Share Posted October 21, 2019 Any solution to test your break point is add a die() just in module hook listener, something like die('OK') and test it with dev tools: 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