Jump to content

Is Hook Deleteproductattribute Working?


Martin Bargl

Recommended Posts

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

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...