Martin Bargl Posted February 17, 2016 Share Posted February 17, 2016 Hi, I hope I am on the right forum, since this is a core feature. I am developing a module to send data to logistic center. All works well, except when I try to hook deleteProductAttribute and I am not sure this is the right hook and there's not documentation for this. So what I need: I need to know information when I delete a product combination same as it works with hookDeleteProduct. In hook's table I found deleteProductAttribute, I am able to register it to positions, but when I delete combination, nothing happens. Another hook doing same for the main product works (hookDeleteProduct) Prestashop version: 1.6.0.9 public function install() { if (!parent::install() || !$this->registerHook('deleteProductAttribute')) { return false; } return true; } public function hookDeleteProductAttribute($data) { var_dump($data);die; } I know this thing is done by AJAX, but the console response is OK. So is there something wrong? Thanks, Martin Link to comment Share on other sites More sharing options...
jf Viguier Posted June 20, 2016 Share Posted June 20, 2016 Hi, The hook is actionProductAttributeDelete. Use it like this : $this->registerHook('actionProductAttributeDelete'); ... public function hookActionProductAttributeDelete($params) { ... Hope this help JF 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