Aris S. Posted January 22, 2016 Share Posted January 22, 2016 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 More sharing options...
roja45 Posted January 22, 2016 Share Posted January 22, 2016 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. 1 Link to comment Share on other sites More sharing options...
Aris S. Posted January 29, 2016 Author Share Posted January 29, 2016 Thanks, I can use the hook ActionObjectCombinationAddAfter (mind the *AddAfter instead of *AfterAdd). Issue closed. 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