Jump to content

What Hook To Use For Adding A Product Combination?


Aris S.

Recommended Posts

I would like to take some custom actions after adding a new product combination (generate an EAN13) but I can't find the correct hook for it.

I've found a hook ActionProductAdd, but there is no hook ActionProductAttributeAdd?!

 

Can anyone help please?

Link to comment
Share on other sites

Not certain it calls the product update hook, at least I can't see where it does from a quick scan, through the code.  It does create a new Combination object though so you have actionObjectCombinationBeforeAdd & actionObjectCombinationAfterAdd to play with.  You'll have access to the product id from within those hooks, so you should be able to do what you want.

  • Like 1
Link to comment
Share on other sites

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...